summaryrefslogtreecommitdiff
path: root/asterisk.c
diff options
context:
space:
mode:
authorBJ Weschke <bweschke@btwtech.com>2006-02-14 18:49:37 +0000
committerBJ Weschke <bweschke@btwtech.com>2006-02-14 18:49:37 +0000
commit6255f762126437c057c64a15a8240ffea12421c5 (patch)
treefacdf299795038c8ea094cacbf5ffb6c2608ecd0 /asterisk.c
parent0edfb0eb39428c7e18279cae2f3c726ac726d6af (diff)
#ifdef the include too.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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