summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2015-04-28 08:52:04 -0400
committerRaghavendra Bhat <raghavendra@redhat.com>2015-05-19 06:35:08 -0700
commitdcdf54520f8c4435db4d4934c7675a75a4b9dbc0 (patch)
treefa9c09156f467b9f0d86c65a10f14f09b31e1de1
parent06d42b30d8eefb6fb5f29d81ec36573a088abe17 (diff)
build: only include sys/sysctl.h when sysctl() is used
Backport of BZ 1198849 http://review.gluster.org/9963 (fails to build on X32. X32 ABI for amd64/x86_64 using 32-bit pointers.) Change-Id: I92496eeadec5a339abcfe9b7fab4bef896d80da4 BUG: 1215421 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/10424 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index d30f2e8..315af96 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -17,7 +17,7 @@
#include <sys/types.h>
#include <libutil.h>
#include <sys/user.h>
-#else
+#elif defined(CTL_KERN)
#include <sys/sysctl.h>
#endif