From b0c07f4db5f1ed2eeb58709d1021e11ca8fd5600 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 20 May 2011 16:56:31 +0000 Subject: rpc: NetBSD portability fixes NetBSD's does a #defiine d_ino d_fileno. Since glusterfs declares structs with d_ino members, we must include early so that d_ino get preprocessed into d_fileno conssitently. Also define proper xdr types for NetBSD. Thanks to: Emmanuel Dreyfus Signed-off-by: Anand Avati BUG: 2923 (NetBSD port) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2923 --- rpc/rpc-lib/src/xdr-common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rpc') diff --git a/rpc/rpc-lib/src/xdr-common.h b/rpc/rpc-lib/src/xdr-common.h index e49aa4882c9..c69bfa834fb 100644 --- a/rpc/rpc-lib/src/xdr-common.h +++ b/rpc/rpc-lib/src/xdr-common.h @@ -30,6 +30,11 @@ #include #include +#ifdef __NetBSD__ +#include +#endif /* __NetBSD__ */ + + enum gf_dump_procnum { GF_DUMP_NULL, GF_DUMP_DUMP, @@ -47,6 +52,13 @@ enum gf_dump_procnum { #define uint64_t u_int64_t #endif +#if defined(__NetBSD__) +#define xdr_u_quad_t xdr_u_int64_t +#define xdr_quad_t xdr_int64_t +#define xdr_uint32_t xdr_u_int32_t +#endif + + #if GF_SOLARIS_HOST_OS #define u_quad_t uint64_t #define quad_t int64_t -- cgit