File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
netware /
sendmail_nw.h
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 4 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
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 */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>