]> granicus.if.org Git - php/commitdiff
Adding this file from 5_0 tree
authorAnantha Kesari H Y <hyanantha@php.net>
Thu, 28 Jul 2005 09:25:30 +0000 (09:25 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Thu, 28 Jul 2005 09:25:30 +0000 (09:25 +0000)
-- Kamesh

netware/sendmail_nw.h [new file with mode: 0644]

diff --git a/netware/sendmail_nw.h b/netware/sendmail_nw.h
new file mode 100644 (file)
index 0000000..b88f8e1
--- /dev/null
@@ -0,0 +1,19 @@
+
+#define closesocket close
+#define LPCSTR char *
+#define LPSTR char*
+#define FAR
+#ifdef USE_WINSOCK
+#include <novsock2.h>
+#else
+#include <sys/socket.h>        /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
+#include <netinet/in.h>        /* For struct sockaddr_in */
+#include <netdb.h>             /* 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 */