X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=NetWare%2Fnw5sck.c;h=46069a3ab28e087dfc1e7a1f02d661a43f5f39c2;hb=247fb02e864fbacf2e3a11c336199cde6431ca07;hp=c1a42fea80caf8cbc41b28cd5702c86bf4f3089d;hpb=acfe0abcedaf592fb4b9cb69ce3468308ae99d91;p=p5sagit%2Fp5-mst-13.2.git diff --git a/NetWare/nw5sck.c b/NetWare/nw5sck.c index c1a42fe..46069a3 100644 --- a/NetWare/nw5sck.c +++ b/NetWare/nw5sck.c @@ -25,6 +25,11 @@ #include #include +// This is defined here since arpa\inet.h defines this array as an extern, +// and arpa\inet.h gets included by the inet_ntoa call. +char nwinet_scratch[18] = {'\0'}; + + u_long nw_htonl(u_long hostlong) { @@ -180,25 +185,33 @@ nw_getservent(void) void nw_sethostent(int stayopen) { +#ifdef HAS_SETHOSTENT sethostent(stayopen); +#endif } void nw_setnetent(int stayopen) { +#ifdef HAS_SETNETENT setnetent(stayopen); +#endif } void nw_setprotoent(int stayopen) { +#ifdef HAS_SETPROTENT setprotoent(stayopen); +#endif } void nw_setservent(int stayopen) { +#ifdef HAS_SETSERVENT setservent(stayopen); +#endif } int @@ -225,6 +238,12 @@ nw_inet_addr(const char *cp) return inet_addr((char*)cp); } +char * +nw_inet_ntoa(struct in_addr in) +{ + return inet_ntoa(in); +} + SOCKET nw_socket(int af, int type, int protocol) {