aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 18:49:37 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 18:49:37 +0000
commit5ca126dc878b567faf7c1b94a7a3ee43ba4194c7 (patch)
treefacdf299795038c8ea094cacbf5ffb6c2608ecd0 /asterisk.c
parentf6d4ed6d51ff12dba0014d692cb0dd2d9bc65db9 (diff)
#ifdef the include too.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9963 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rw-r--r--asterisk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c
index 40ddb3e33..d2d493d80 100644
--- a/asterisk.c
+++ b/asterisk.c
@@ -74,9 +74,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