]> granicus.if.org Git - php/commitdiff
New file added for NetWare.
authorAnantha Kesari H Y <hyanantha@php.net>
Fri, 3 Jan 2003 11:12:40 +0000 (11:12 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Fri, 3 Jan 2003 11:12:40 +0000 (11:12 +0000)
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..9d0b7fb
--- /dev/null
@@ -0,0 +1,17 @@
+
+#ifdef USE_WINSOCK
+/*#include <ws2nlm.h>*/
+#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 */
+/*#include <ws2name.h>*/
+#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 */