$NetBSD: patch-af,v 1.3 2005/05/31 20:51:46 salo Exp $ --- Library/src/wwwsys.h.orig Wed Dec 20 05:00:07 2000 +++ Library/src/wwwsys.h @@ -925,6 +925,7 @@ Their existance is discovered by configu #endif /* appkit.h */ +#ifdef __NeXT__ #ifdef HAVE_APPKIT_APPKIT_H #include #else @@ -932,6 +933,7 @@ Their existance is discovered by configu #include #endif #endif +#endif /* dn.h */ #ifdef HAVE_DN_H @@ -1225,25 +1227,24 @@ the SOCKS ones. Initial modification of #ifdef SOCKS4 #define connect Rconnect #define getsockname Rgetsockname -#define getpeername Rgetpeername +/* #define getpeername Rgetpeername */ #define bind Rbind #define accept Raccept #define listen Rlisten #define select Rselect -#define recvfrom Rrecvfrom -#define sendto Rsendto -#define recv Rrecv -#define send Rsend -#define read Rread -#define write Rwrite -#define rresvport Rrresvport -#define shutdown Rshutdown -#define listen Rlisten -#define close Rclose -#define dup Rdup -#define dup2 Rdup2 -#define fclose Rfclose -#define gethostbyname Rgethostbyname +/* #define recvfrom Rrecvfrom */ +/* #define sendto Rsendto */ +/* #define recv Rrecv */ +/* #define send Rsend */ +/* #define read Rread */ +/* #define write Rwrite */ +/* #define rresvport Rrresvport */ +/* #define shutdown Rshutdown */ +/* #define close Rclose */ +/* #define dup Rdup */ +/* #define dup2 Rdup2 */ +/* #define fclose Rfclose */ +/* #define gethostbyname Rgethostbyname */ #else #ifdef SOCKS5 #define connect SOCKSconnect @@ -1316,7 +1317,9 @@ table. */ #ifndef ERRNO_DONE +#ifndef errno extern int errno; +#endif #define socerrno errno #endif