summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-11-12 17:30:41 +0000
committerJoe Watkins <krakjoe@php.net>2016-11-12 17:30:41 +0000
commita2bc7cf9ca74c051bfd287c1b3d54c76945f10cc (patch)
treeb45a5d42d9d2ab47f9f06180e12ca973d289a3cc /ext/standard/dns.c
parent6c0e1ca4fa31a860a363abecd6376d99edff8833 (diff)
parent2104bea5d756dfa40b605a4a2765a3bc4637a76c (diff)
downloadphp-git-a2bc7cf9ca74c051bfd287c1b3d54c76945f10cc.tar.gz
Merge branch 'master' of git.php.net:/php-src
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index de40649e69..f92015eee9 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -33,7 +33,7 @@
# include <winsock2.h>
# include <windows.h>
# include <Ws2tcpip.h>
-#else /* This holds good for NetWare too, both for Winsock and Berkeley sockets */
+#else
#include <netinet/in.h>
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
@@ -57,11 +57,6 @@
#endif
#endif
-/* Borrowed from SYS/SOCKET.H */
-#if defined(NETWARE) && defined(USE_WINSOCK)
-#define AF_INET 2 /* internetwork: UDP, TCP, etc. */
-#endif
-
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 255
#endif
@@ -305,7 +300,7 @@ static zend_string *php_gethostbyname(char *name)
#endif /* HAVE_FULL_DNS_FUNCS || defined(PHP_WIN32) */
/* Note: These functions are defined in ext/standard/dns_win32.c for Windows! */
-#if !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__))
#ifndef HFIXEDSZ
#define HFIXEDSZ 12 /* fixed data in header <arpa/nameser.h> */
@@ -1085,7 +1080,7 @@ PHP_FUNCTION(dns_get_mx)
}
/* }}} */
#endif /* HAVE_FULL_DNS_FUNCS */
-#endif /* !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE))) */
+#endif /* !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__)) */
#if HAVE_FULL_DNS_FUNCS || defined(PHP_WIN32)
PHP_MINIT_FUNCTION(dns) {