|
38 | 38 | #include <stdio.h>
|
39 | 39 | #include <netdb.h>
|
40 | 40 |
|
| 41 | +/* Additional headers for NetWare */ |
| 42 | +#ifdef NETWARE |
| 43 | +/*#include "netware/env.h"*/ /* Temporary */ |
| 44 | +#ifdef NEW_LIBC /* Same headers hold good for Winsock and Berkeley sockets */ |
| 45 | +#include <netinet/in.h> |
| 46 | +/*#include <arpa/inet.h>*/ |
| 47 | +#include <netdb.h> |
| 48 | +#else |
| 49 | +#include <sys/socket.h> |
| 50 | +#endif |
| 51 | +#else |
| 52 | +#include <netdb.h> |
| 53 | +#endif |
| 54 | + |
41 | 55 | #if HAVE_ARPA_INET_H
|
42 | 56 | # include <arpa/inet.h>
|
43 | 57 | #endif
|
@@ -415,7 +429,7 @@ function_entry basic_functions[] = {
|
415 | 429 | PHP_FE(gethostbyname, NULL)
|
416 | 430 | PHP_FE(gethostbynamel, NULL)
|
417 | 431 |
|
418 |
| -#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32)) |
| 432 | +#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) |
419 | 433 | PHP_FE(checkdnsrr, NULL)
|
420 | 434 | PHP_FE(getmxrr,second_and_third_args_force_ref)
|
421 | 435 | #else
|
@@ -447,7 +461,7 @@ function_entry basic_functions[] = {
|
447 | 461 | PHP_FE(cosh, NULL)
|
448 | 462 | PHP_FE(tanh, NULL)
|
449 | 463 |
|
450 |
| -#ifndef PHP_WIN32 |
| 464 | +#if !defined(PHP_WIN32) && !defined(NETWARE) |
451 | 465 | PHP_FE(asinh, NULL)
|
452 | 466 | PHP_FE(acosh, NULL)
|
453 | 467 | PHP_FE(atanh, NULL)
|
@@ -634,7 +648,7 @@ function_entry basic_functions[] = {
|
634 | 648 |
|
635 | 649 | PHP_FE(socket_get_status, NULL)
|
636 | 650 |
|
637 |
| -#if (!defined(PHP_WIN32) && !defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS) |
| 651 | +#if (!defined(PHP_WIN32) && !defined(__BEOS__) && HAVE_REALPATH && !defined(NETWARE)) || defined(ZTS) |
638 | 652 | PHP_FE(realpath, NULL)
|
639 | 653 | #else
|
640 | 654 | PHP_FALIAS(realpath, warn_not_available, NULL)
|
@@ -1001,7 +1015,9 @@ PHP_MINIT_FUNCTION(basic)
|
1001 | 1015 | PHP_MINIT(lcg) (INIT_FUNC_ARGS_PASSTHRU);
|
1002 | 1016 |
|
1003 | 1017 | PHP_MINIT(dir) (INIT_FUNC_ARGS_PASSTHRU);
|
| 1018 | +#ifdef HAVE_SYSLOG_H |
1004 | 1019 | PHP_MINIT(syslog) (INIT_FUNC_ARGS_PASSTHRU);
|
| 1020 | +#endif |
1005 | 1021 | PHP_MINIT(array) (INIT_FUNC_ARGS_PASSTHRU);
|
1006 | 1022 | PHP_MINIT(assert) (INIT_FUNC_ARGS_PASSTHRU);
|
1007 | 1023 | PHP_MINIT(url_scanner_ex) (INIT_FUNC_ARGS_PASSTHRU);
|
@@ -1082,7 +1098,9 @@ PHP_RINIT_FUNCTION(basic)
|
1082 | 1098 | PHP_RINIT(lcg) (INIT_FUNC_ARGS_PASSTHRU);
|
1083 | 1099 |
|
1084 | 1100 | PHP_RINIT(filestat) (INIT_FUNC_ARGS_PASSTHRU);
|
| 1101 | +#ifdef HAVE_SYSLOG_H |
1085 | 1102 | PHP_RINIT(syslog) (INIT_FUNC_ARGS_PASSTHRU);
|
| 1103 | +#endif |
1086 | 1104 | PHP_RINIT(dir) (INIT_FUNC_ARGS_PASSTHRU);
|
1087 | 1105 |
|
1088 | 1106 | /* Reset magic_quotes_runtime */
|
@@ -1113,7 +1131,9 @@ PHP_RSHUTDOWN_FUNCTION(basic)
|
1113 | 1131 |
|
1114 | 1132 | PHP_RSHUTDOWN(fsock) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
|
1115 | 1133 | PHP_RSHUTDOWN(filestat) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
|
| 1134 | +#ifdef HAVE_SYSLOG_H |
1116 | 1135 | PHP_RSHUTDOWN(syslog) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
|
| 1136 | +#endif |
1117 | 1137 | PHP_RSHUTDOWN(assert) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
|
1118 | 1138 |
|
1119 | 1139 | if (BG(user_tick_functions)) {
|
|
0 commit comments