--- libglusterfs/src/logging.h.orig 2009-07-29 10:27:46.000000000 +0900 +++ libglusterfs/src/logging.h 2009-07-29 10:55:22.000000000 +0900 @@ -57,9 +57,19 @@ # error '64 bit ino_t is must for GlusterFS to work, Compile with "CFLAGS=-D__DARWIN_64_BIT_INO_T"' # endif /* __DARWIN_64_BIT_INO_T */ -#else /* !LINUX && !DARWIN */ +#elif GF_BSD_HOST_OS +# include +# undef ALIGN +# ifndef i386_btop /* amd64 arch */ +# define GF_PRI_SIZET "lu" +# else +# define GF_PRI_SIZET "u" +# endif +# define GF_PRI_NLINK "u" + +#else /* !LINUX && !DARWIN && !BSD */ -/* BSD and Solaris : Change as per testing there.. */ +/* Solaris : Change as per testing there.. */ # define GF_PRI_SIZET "lu" # define GF_PRI_NLINK "u"