cvs: php4 /ext/standard basic_functions.c
| From: | Anantha Kesari H Y | Date: | Thu, 05 Sep 2002 12:03:44 +0000 |
| Subject: | cvs: php4 /ext/standard basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13853@lists.php.net to get a copy of this message | ||
hyanantha Thu Sep 5 08:03:44 2002 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
NetWare related additions/modifications
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.500 php4/ext/standard/basic_functions.c:1.501
--- php4/ext/standard/basic_functions.c:1.500 Tue Sep 3 18:54:02 2002
+++ php4/ext/standard/basic_functions.c Thu Sep 5 08:03:43 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.500 2002/09/03 22:54:02 sniper Exp $ */
+/* $Id: basic_functions.c,v 1.501 2002/09/05 12:03:43 hyanantha Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -37,7 +37,19 @@
#include <math.h>
#include <time.h>
#include <stdio.h>
+
+#ifndef NETWARE
+#include <netdb.h>
+#else
+/*#include "netware/env.h"*/ /* Temporary */
+#ifdef NEW_LIBC /* Same headers hold good for Winsock and Berkeley sockets */
+#include <netinet/in.h>
+/*#include <arpa/inet.h>*/
#include <netdb.h>
+#else
+#include <sys/socket.h>
+#endif
+#endif
#if HAVE_ARPA_INET_H
# include <arpa/inet.h>
@@ -415,7 +427,7 @@
PHP_FE(gethostbyname, NULL)
PHP_FE(gethostbynamel, NULL)
-#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32))
+#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE))
PHP_FE(checkdnsrr, NULL)
PHP_FE(getmxrr,second_and_third_args_force_ref)
#endif
@@ -444,7 +456,8 @@
PHP_FE(cosh, NULL)
PHP_FE(tanh, NULL)
-#ifndef PHP_WIN32
+/*#ifndef PHP_WIN32*/
+#if !defined(PHP_WIN32) && !defined(NETWARE)
PHP_FE(asinh, NULL)
PHP_FE(acosh, NULL)
PHP_FE(atanh, NULL)
@@ -629,7 +642,7 @@
PHP_FE(socket_get_status, NULL)
-#if (!defined(PHP_WIN32) && !defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(PHP_WIN32) && !defined(__BEOS__) && !defined(NETWARE) &&
HAVE_REALPATH) || defined(ZTS)
PHP_FE(realpath, NULL)
#endif