]> granicus.if.org Git - php/commitdiff
cleaned up confusing NetWare specific check. disabled chown and chgrp for NetWare
authorAnantha Kesari H Y <hyanantha@php.net>
Sat, 25 Sep 2004 13:19:45 +0000 (13:19 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Sat, 25 Sep 2004 13:19:45 +0000 (13:19 +0000)
ext/standard/basic_functions.c

index 0ca118a4cd4a68ec60e48d63a34d7e26d0a3cfb7..c9449ee49245cc230125edc062f2b0f532c03c62 100644 (file)
@@ -51,19 +51,12 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
 #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 */
+#ifdef NETWARE
 #include <netinet/in.h>
-/*#include <arpa/inet.h>*/
-#include <netdb.h>
-#else
-#include <sys/socket.h>
-#endif
 #endif
 
+#include<netdb.h>
+
 #if HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
@@ -696,8 +689,10 @@ function_entry basic_functions[] = {
        PHP_FE(is_link,                                                                                                                 NULL)
        PHP_NAMED_FE(stat,                              php_if_stat,                                                    NULL)
        PHP_NAMED_FE(lstat,                             php_if_lstat,                                                   NULL)
+#ifndef NETWARE
        PHP_FE(chown,                                                                                                                   NULL)
        PHP_FE(chgrp,                                                                                                                   NULL)
+#endif
        PHP_FE(chmod,                                                                                                                   NULL)
 #if HAVE_UTIME
        PHP_FE(touch,                                                                                                                   NULL)