From c89405f0c720e115e3bd14224ae94d0e8c0f7ca4 Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Thu, 28 Jul 2005 10:10:16 +0000 Subject: [PATCH] NetWare changes from 5.0 Tree. --Kamesh --- win32/sendmail.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/win32/sendmail.c b/win32/sendmail.c index 639f6eddb4..55868d68a4 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -22,6 +22,7 @@ #include "php.h" /*php specific */ #include #include +#ifndef NETWARE #include #include "time.h" #include @@ -29,6 +30,9 @@ #include #include #include +#else +#include +#endif #include "sendmail.h" #include "php_ini.h" @@ -74,17 +78,24 @@ char Buffer[MAIL_BUFFER_SIZE]; /* socket related data */ SOCKET sc; +#ifndef NETWARE WSADATA Data; struct hostent *adr; -SOCKADDR_IN sock_in; 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 char seps[] = " ,\t\n"; +#ifndef NETWARE char *php_mailer = "PHP 4 WIN32"; +#else +char *php_mailer = "PHP 4 NetWare"; +#endif /* NETWARE */ + char *get_header(char *h, char *headers); @@ -214,7 +225,10 @@ int TSendMail(char *host, int *error, char **error_message, char *pos1 = NULL, *pos2 = NULL; TSRMLS_FETCH(); +#ifndef NETWARE WinsockStarted = FALSE; +#endif + if (host == NULL) { *error = BAD_MAIL_HOST; -- 2.50.1