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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388045
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#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>
#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"