#include "php.h" /*php specific */
#include <stdio.h>
#include <stdlib.h>
+#ifndef NETWARE
#include <winsock.h>
#include "time.h"
#include <string.h>
#include <malloc.h>
#include <memory.h>
#include <winbase.h>
+#else
+#include <netware/sendmail_nw.h>
+#endif
#include "sendmail.h"
#include "php_ini.h"
/* 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);
char *pos1 = NULL, *pos2 = NULL;
TSRMLS_FETCH();
+#ifndef NETWARE
WinsockStarted = FALSE;
+#endif
+
if (host == NULL) {
*error = BAD_MAIL_HOST;