svanegmond Mon Feb 5 16:07:21 2001 EDT
Modified files:
/php4/ext/standard dns.c
Log:
Added tests for arpa/*.h and resolv.h which don't exist on the BeOS.
The dns functions on BeOS come from socket.h
Index: php4/ext/standard/dns.c
diff -u php4/ext/standard/dns.c:1.24 php4/ext/standard/dns.c:1.25
--- php4/ext/standard/dns.c:1.24 Sun Jan 21 09:26:43 2001
+++ php4/ext/standard/dns.c Mon Feb 5 16:07:21 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dns.c,v 1.24 2001/01/21 17:26:43 rasmus Exp $ */
+/* $Id: dns.c,v 1.25 2001/02/06 00:07:21 svanegmond Exp $ */
#include "php.h"
#if HAVE_SYS_SOCKET_H
@@ -42,14 +42,20 @@
#include <winsock.h>
#else
#include <netinet/in.h>
+#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
+#endif
#include <netdb.h>
#ifdef _OSD_POSIX
#undef STATUS
#undef T_UNSPEC
#endif
+#if HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
+#endif
+#if HAVE_RESOLV_H
#include <resolv.h>
+#endif
#endif
#include "dns.h"
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]