mirror of
https://github.com/php/php-src.git
synced 2024-12-25 09:49:08 +08:00
e78ea8251a
--Kamesh
20 lines
577 B
C
20 lines
577 B
C
|
|
#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 */
|