diff options
author | shishir gowda <shishirng@gluster.com> | 2010-10-27 23:57:55 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-27 23:37:32 -0700 |
commit | 87c0e8fba2d0be4496ec4085136fca459f62c00c (patch) | |
tree | 300e85e30b036067633a343f1e33d9a71f33d315 /libglusterfs | |
parent | e93b270e8d09fc9d36a39b22987d3a172197e73b (diff) |
Solaris build fixes: Patch for 64bit build
This will fix build failures when -m64 option is used to build
gluster
Signed-off-by: Super-User <root@Solaris-10.(none)>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1990 (Gluster mainline build on solaris fails with errors)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1990
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/compat.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index 2f83054fa14..690b4f9e689 100644 --- a/libglusterfs/src/compat.h +++ b/libglusterfs/src/compat.h @@ -351,4 +351,20 @@ dirent_size (struct dirent *entry) #define ST_CTIM_NSEC_SET(stbuf, val) do { } while (0); #endif +#ifndef IXDR_GET_LONG +#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) +#endif + +#ifndef IXDR_PUT_LONG +#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) +#endif + +#ifndef IXDR_GET_U_LONG +#define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) +#endif + +#ifndef IXDR_PUT_U_LONG +#define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) +#endif + #endif /* __COMPAT_H__ */ |