summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index a6ac7ebe42..e9d031989c 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -38,12 +38,13 @@
#include "config.h"
#if SIZEOF_PID_T == 4
-# define PID_FMT "%" PRIi32
+# define PID_PRI PRIi32
#elif SIZEOF_PID_T == 2
-# define PID_FMT "%" PRIi16
+# define PID_PRI PRIi16
#else
# error Unknown pid_t size
#endif
+#define PID_FMT "%" PID_PRI
#if SIZEOF_UID_T == 4
# define UID_FMT "%" PRIu32