summaryrefslogtreecommitdiff
path: root/main/srv.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2007-02-18 15:03:42 +0000
committerKevin P. Fleming <kpfleming@digium.com>2007-02-18 15:03:42 +0000
commit74f31a51bc4fdf14b6f3a5d2f886c65ff882bd55 (patch)
treed3cbfebd5968b6a1cb896ae84b747c066ae3e94c /main/srv.c
parent7f0934b6f4f2d80f5d7befacb0b7ea51c346d634 (diff)
add -Wundef to the --enable-dev-mode flags, so that mistyped macro names in #if expressions will be caught
convert various #if expressions to #ifdef for macros that may not be defined (and where the value is not important) Note: two of these changes are in bison generated files which is going to be inconvenient when they are regenerated git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/srv.c')
-rw-r--r--main/srv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/srv.c b/main/srv.c
index 8b7e76bfc..7cf072cda 100644
--- a/main/srv.c
+++ b/main/srv.c
@@ -36,9 +36,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
+#ifdef __APPLE__
#if __APPLE_CC__ >= 1495
#include <arpa/nameser_compat.h>
#endif
+#endif
#include <resolv.h>
#include <stdio.h>
#include <string.h>