xref: /PHP-5.3/netware/sendmail_nw.h (revision e78ea825)
1 
2 #define closesocket close
3 #define LPCSTR char *
4 #define LPSTR char*
5 #define FAR
6 #ifdef USE_WINSOCK
7 #include <novsock2.h>
8 #else
9 #include <sys/socket.h>	/* For struct sockaddr, 'PF_INET' and 'AF_INET' */
10 #include <netinet/in.h>	/* For struct sockaddr_in */
11 #include <netdb.h>		/* For struct hostent */
12 #endif	/* USE_WINSOCK */
13 
14 typedef int SOCKET;	/* Borrowed from winsock\novsock2.h */
15 typedef struct sockaddr_in SOCKADDR_IN;
16 typedef struct sockaddr * LPSOCKADDR;
17 typedef struct hostent * LPHOSTENT;
18 
19 #define INVALID_SOCKET  (SOCKET)(~0)	/* Borrowed from winsock\novsock2.h */
20