cleaned up confusing NetWare specific check. disabled chown and chgrp for NetWare

This commit is contained in:
Anantha Kesari H Y 2004-09-25 13:19:45 +00:00
parent 0ec80db02a
commit 24437ccb75

View 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)