aboutsummaryrefslogtreecommitdiffstats
path: root/main/srv.c
diff options
context:
space:
mode:
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>