From: Anantha Kesari H Y Date: Thu, 28 Jul 2005 09:25:30 +0000 (+0000) Subject: Adding this file from 5_0 tree X-Git-Tag: php-4.4.1RC1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51e4e4c3f5d9ab061cd741a9f69c0deb83503d79;p=php Adding this file from 5_0 tree -- Kamesh --- diff --git a/netware/sendmail_nw.h b/netware/sendmail_nw.h new file mode 100644 index 0000000000..b88f8e12a1 --- /dev/null +++ b/netware/sendmail_nw.h @@ -0,0 +1,19 @@ + +#define closesocket close +#define LPCSTR char * +#define LPSTR char* +#define FAR +#ifdef USE_WINSOCK +#include +#else +#include /* For struct sockaddr, 'PF_INET' and 'AF_INET' */ +#include /* For struct sockaddr_in */ +#include /* For struct hostent */ +#endif /* USE_WINSOCK */ + +typedef int SOCKET; /* Borrowed from winsock\novsock2.h */ +typedef struct sockaddr_in SOCKADDR_IN; +typedef struct sockaddr * LPSOCKADDR; +typedef struct hostent * LPHOSTENT; + +#define INVALID_SOCKET (SOCKET)(~0) /* Borrowed from winsock\novsock2.h */