diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-18 15:03:42 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-18 15:03:42 +0000 |
commit | 86baa1f143f2d656af546daa60e04322fb774e43 (patch) | |
tree | d3cbfebd5968b6a1cb896ae84b747c066ae3e94c /main/enum.c | |
parent | c37360e99ec0341b2eb5909fa74793ffffb7bfee (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: http://svn.digium.com/svn/asterisk/trunk@55329 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/enum.c')
-rw-r--r-- | main/enum.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/enum.c b/main/enum.c index 0cdf308fa..5db6adb01 100644 --- a/main/enum.c +++ b/main/enum.c @@ -48,9 +48,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <sys/socket.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 <stdlib.h> #include <string.h> |