aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar Ian Ray <ianjray@me.com>2013-05-23 21:03:34 +0300
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-06-01 23:33:27 -0700
commitb35a2d568a62155077252c3487a44fa988f34d80 (patch)
tree908026f3b9c19278a5611bba61e84cbad0b86d0a /expand.cpp
parent9ca12e9f9d7494c5c38e4bcded768360d681f77d (diff)
Conditionally include sys/sysctl.h
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/expand.cpp b/expand.cpp
index 74e50102..6dfa9e44 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -18,7 +18,9 @@ parameter expansion.
#include <limits.h>
#include <sys/param.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
+#endif
#include <termios.h>
#include <dirent.h>
#include <sys/stat.h>