diff options
| author | Csaba Henk <csaba@gluster.com> | 2010-05-17 07:09:13 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-05-21 00:31:51 -0700 | 
| commit | 11fb070964adf57eea4191d315a752c96f80a426 (patch) | |
| tree | 8a66a5cfe14fe22315c2bfe0ea1667b8c6ab0349 /libglusterfs/src/logging.h | |
| parent | bfb10f41a8e3fe7326f507451459529c5b39b72e (diff) | |
OS X: adjustments, minor fixes to eliminate warnings
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'libglusterfs/src/logging.h')
| -rw-r--r-- | libglusterfs/src/logging.h | 12 | 
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,  | 
