aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/shared.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r--src/libmain/shared.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index da3bc3bb5..5eb7871f3 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -15,7 +15,9 @@
#include <sys/stat.h>
#include <unistd.h>
#include <signal.h>
+#ifdef __linux__
#include <features.h>
+#endif
#ifdef __GLIBC__
#include <gnu/lib-names.h>
#include <nss.h>