From 11fb070964adf57eea4191d315a752c96f80a426 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Mon, 17 May 2010 07:09:13 +0000 Subject: OS X: adjustments, minor fixes to eliminate warnings Signed-off-by: Csaba Henk Signed-off-by: Anand V. Avati BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361 --- libglusterfs/src/logging.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libglusterfs/src/logging.h') diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index 3c197c015..8c78a3ee1 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -30,11 +30,17 @@ #include #include -#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, -- cgit