aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 18:50:42 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 18:50:42 +0000
commit437dcd93b6a0cf74248d789d4e369dbaa3cd2667 (patch)
tree3e16033e2be1141d091c43d62a8bcf9ce5f30081
parent0d1d95a9a321d0b8638bf2560345207fa21b1163 (diff)
#ifdef the include too.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@9964 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--asterisk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c
index bd20a4840..4a0e77885 100644
--- a/asterisk.c
+++ b/asterisk.c
@@ -75,9 +75,12 @@
#include <grp.h>
#include <pwd.h>
#include <sys/stat.h>
-#include <sys/prctl.h>
#include <regex.h>
+#ifdef linux
+#include <sys/prctl.h>
+#endif
+
#if defined(__FreeBSD__) || defined( __NetBSD__ ) || defined(SOLARIS)
#include <netdb.h>
#endif