hyanantha Thu Oct 24 07:13:19 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/standard dns.c Log: NetWare related changes/modifications. Index: php4/ext/standard/dns.c diff -u php4/ext/standard/dns.c:1.38.2.2 php4/ext/standard/dns.c:1.38.2.3 --- php4/ext/standard/dns.c:1.38.2.2 Thu Aug 29 11:59:54 2002 +++ php4/ext/standard/dns.c Thu Oct 24 07:13:19 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dns.c,v 1.38.2.2 2002/08/29 15:59:54 iliaa Exp $ */ +/* $Id: dns.c,v 1.38.2.3 2002/10/24 11:13:19 hyanantha Exp $ */ /* {{{ includes */ @@ -42,7 +42,7 @@ #endif #endif #include <winsock.h> -#else +#else /* This holds good for NetWare too, both for Winsock and Berkeley sockets */ #include <netinet/in.h> #if HAVE_ARPA_INET_H #include <arpa/inet.h> @@ -60,6 +60,11 @@ #endif #endif +/* Borrowed from SYS/SOCKET.H */ +#if defined(NETWARE) && defined(USE_WINSOCK) +#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ +#endif + #include "dns.h" /* }}} */ @@ -201,7 +206,7 @@ } /* }}} */ -#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32)) +#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) /* {{{ proto int checkdnsrr(string host [, string type]) Check DNS records corresponding to a given Internet host name or IP address */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php