summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 5b592e4a3..f08a4d020 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -79,12 +79,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#if defined(HAVE_SYSINFO)
#include <sys/sysinfo.h>
#endif
-#ifdef linux
-#include <sys/prctl.h>
-#ifdef HAVE_CAP
-#include <sys/capability.h>
-#endif /* HAVE_CAP */
-#endif /* linux */
#include <regex.h>
#if defined(SOLARIS)
@@ -92,6 +86,15 @@ int daemon(int, int); /* defined in libresolv of all places */
#include <sys/loadavg.h>
#endif
+#include "asterisk/zapata.h"
+
+#ifdef linux
+#include <sys/prctl.h>
+#ifdef HAVE_CAP
+#include <sys/capability.h>
+#endif /* HAVE_CAP */
+#endif /* linux */
+
#include "asterisk/paths.h" /* we define here the variables so better agree on the prototype */
#include "asterisk/network.h"
#include "asterisk/cli.h"
@@ -122,7 +125,6 @@ int daemon(int, int); /* defined in libresolv of all places */
#include "asterisk/devicestate.h"
#include "asterisk/module.h"
#include "asterisk/dsp.h"
-#include "asterisk/zapata.h"
#include "asterisk/doxyref.h" /* Doxygen documentation */