[asterisk-commits] dlee: trunk r388045 - in /trunk/main: enum.c srv.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 8 15:25:30 CDT 2013


Author: dlee
Date: Wed May  8 15:25:28 2013
New Revision: 388045

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388045
Log:
Removed #if checks for crazy old versions of OS X.

The <arpa/nameser_compat.h> was introduced way back in OS X Panther, which
itself was end-of-lifed back in 2007. We can assume that any OS X machine
we build on will need that header file :-)

Why bother removing it? The flag we're checking (__APPLE_CC__) is actually
Apple's build number. Self-compiled versions of GCC (such as installing the
latest version of GCC from homebrew) sets the value to 0, making it useless
for this sort of compile flaggery.

Modified:
    trunk/main/enum.c
    trunk/main/srv.c

Modified: trunk/main/enum.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/enum.c?view=diff&rev=388045&r1=388044&r2=388045
==============================================================================
--- trunk/main/enum.c (original)
+++ trunk/main/enum.c Wed May  8 15:25:28 2013
@@ -66,9 +66,7 @@
 #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 <ctype.h>

Modified: trunk/main/srv.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/srv.c?view=diff&rev=388045&r1=388044&r2=388045
==============================================================================
--- trunk/main/srv.c (original)
+++ trunk/main/srv.c Wed May  8 15:25:28 2013
@@ -40,9 +40,7 @@
 #include <netinet/in.h>
 #include <arpa/nameser.h>
 #ifdef __APPLE__
-#if __APPLE_CC__ >= 1495
 #include <arpa/nameser_compat.h>
-#endif
 #endif
 #include <resolv.h>
 




More information about the asterisk-commits mailing list