Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.577 kb
f4543e5 New file added for NetWare.
Anantha Kesari H Y authored
1
e78ea82 Cleaned up the NetWare code.
Anantha Kesari H Y authored
2 #define closesocket close
3 #define LPCSTR char *
4 #define LPSTR char*
5 #define FAR
f4543e5 New file added for NetWare.
Anantha Kesari H Y authored
6 #ifdef USE_WINSOCK
7 #include <novsock2.h>
8 #else
9 #include <sys/socket.h> /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
5ecdba3 changing the windows style path seperator in netinet\in.h to netinet/in....
Anantha Kesari H Y authored
10 #include <netinet/in.h> /* For struct sockaddr_in */
f4543e5 New file added for NetWare.
Anantha Kesari H Y authored
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 */
Something went wrong with that request. Please try again.