From 51e4e4c3f5d9ab061cd741a9f69c0deb83503d79 Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Thu, 28 Jul 2005 09:25:30 +0000 Subject: [PATCH] Adding this file from 5_0 tree -- Kamesh --- netware/sendmail_nw.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 netware/sendmail_nw.h 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 */ -- 2.40.0