diff --git a/main/enum.c b/main/enum.c
index 60e603d21b38fefb9027a6897737b6f43d2f66cb..d0972888998d15ee517183c7a48749354523e7e8 100644
--- a/main/enum.c
+++ b/main/enum.c
@@ -66,10 +66,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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>
 #include <regex.h>
diff --git a/main/srv.c b/main/srv.c
index b8b2df8145a12c40dada03b7ed06c8a7ec049027..0938a0c036630f1f3ca0ad2ca7d7e42832ac6a6c 100644
--- a/main/srv.c
+++ b/main/srv.c
@@ -40,10 +40,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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 "asterisk/channel.h"