summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/logging.h')
-rw-r--r--libglusterfs/src/logging.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h
index 3c197c01588..8c78a3ee1d6 100644
--- a/libglusterfs/src/logging.h
+++ b/libglusterfs/src/logging.h
@@ -30,11 +30,17 @@
#include <stdio.h>
#include <stdarg.h>
-#define GF_PRI_FSBLK PRId64
+#ifdef GF_DARWIN_HOST_OS
+#define GF_PRI_FSBLK "u"
+#define GF_PRI_DEV PRId32
+#define GF_PRI_NLINK PRIu16
+#else
+#define GF_PRI_FSBLK PRIu64
+#define GF_PRI_DEV PRIu64
+#define GF_PRI_NLINK PRIu32
+#endif
#define GF_PRI_BLKSIZE PRId32
#define GF_PRI_SIZET "zu"
-#define GF_PRI_NLINK PRId32
-#define GF_PRI_DEV PRId64
typedef enum {
GF_LOG_NONE,