summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-03-22 13:17:46 +0100
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-03-23 12:28:29 -0700
commit889044594614756243259a22ed1448408a2b33ac (patch)
treec0509701b14887b2024d97d1e2b6370e4f21f82c /xlators/mount/fuse/src
parent709b5c158c40e5a8b8f5c4d0ad495550bec8bd4e (diff)
build: only include sys/sysctl.h when sysctl() is used
BUG: 1198849 Change-Id: I9597b4b7f37994865f88b99651ea9ec89787f5cf Reported-by: Adam Borowski <kilobyte@angband.pl> URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778790 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/9963 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/src')
-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 3bfdbcaf17c..ca3a08e773f 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