summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2003-01-03 11:12:40 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2003-01-03 11:12:40 +0000
commitf4543e57f4e97d972a670865cf3cb4b57794cfa4 (patch)
tree9ece109c2614a39f3b4c9190517960e9ee4d7fc8 /netware
parent8f82834a79da37cdfa112d03e1b9f2cdf0a3ca5f (diff)
downloadphp-git-f4543e57f4e97d972a670865cf3cb4b57794cfa4.tar.gz
New file added for NetWare.
Diffstat (limited to 'netware')
-rw-r--r--netware/sendmail_nw.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/netware/sendmail_nw.h b/netware/sendmail_nw.h
new file mode 100644
index 0000000000..9d0b7fb73c
--- /dev/null
+++ b/netware/sendmail_nw.h
@@ -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 */