diff options
author | Anantha Kesari H Y <hyanantha@php.net> | 2005-07-28 09:44:13 +0000 |
---|---|---|
committer | Anantha Kesari H Y <hyanantha@php.net> | 2005-07-28 09:44:13 +0000 |
commit | 0a89e44ed7d5fe20925dd02db1964288239920e2 (patch) | |
tree | dfd16f0d975d0d58730dc668c6907f9fabc9c18e /win32/sendmail.c | |
parent | 83b5eb54c4b8d868f94a7473ffeca96e7877793b (diff) | |
download | php-git-0a89e44ed7d5fe20925dd02db1964288239920e2.tar.gz |
NetWare cleanup
--Kamesh
Diffstat (limited to 'win32/sendmail.c')
-rw-r--r-- | win32/sendmail.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c index b2135a2d0d..0764f803b6 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -83,13 +83,11 @@ SOCKET sc; #ifndef NETWARE WSADATA Data; struct hostent *adr; -#endif /* NETWARE */ -SOCKADDR_IN sock_in; -#ifndef NETWARE int WinsockStarted; /* values set by the constructor */ char *AppName; #endif /* NETWARE */ +SOCKADDR_IN sock_in; char MailHost[HOST_NAME_LEN]; char LocalHost[HOST_NAME_LEN]; #endif @@ -348,14 +346,7 @@ PHPAPI void TSMClose() */ shutdown(sc, 0); -#ifndef NETWARE closesocket(sc); -#else - /* closesocket commented out since it was giving undefined symbol linker error - * close added in its place - */ - close(sc); -#endif /* NETWARE */ } @@ -843,11 +834,7 @@ int MailConnect() // Author/Date: jcar 20/9/96 // History: //********************************************************************/ -#ifndef NETWARE int Post(LPCSTR msg) -#else -int Post(char *msg) -#endif { int len = strlen(msg); int slen; @@ -934,11 +921,7 @@ int Ack(char **server_response) // Author/Date: jcar 20/9/96 // History: //********************************************************************/ -#ifndef NETWARE unsigned long GetAddr(LPSTR szHost) -#else -unsigned long GetAddr(char * szHost) -#endif { LPHOSTENT lpstHost; u_long lAddr = INADDR_ANY; @@ -954,11 +937,7 @@ unsigned long GetAddr(char * szHost) lpstHost = gethostbyname(szHost); if (lpstHost) { /* success */ -#ifndef NETWARE lAddr = *((u_long FAR *) (lpstHost->h_addr)); -#else - lAddr = *((u_long *) (lpstHost->h_addr)); -#endif /* NETWARE */ } else { lAddr = INADDR_ANY; /* failure */ } |