Don't include swap.h unless we have swapctl
authorOlle Johansson <oej@edvina.net>
Mon, 12 Jan 2009 14:35:09 +0000 (14:35 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 12 Jan 2009 14:35:09 +0000 (14:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@168479 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index ccacc6a..9b8b3f7 100644 (file)
@@ -81,8 +81,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #elif defined(HAVE_SYSCTL)
 #include <sys/param.h>
 #include <sys/sysctl.h>
+#if defined(HAVE_SWAPCTL)
 #include <sys/swap.h>
 #endif
+#endif
 #include <regex.h>
 
 #if defined(SOLARIS)