diff --git a/src/include/os/cygwin32/osiSock.h b/src/include/os/cygwin32/osiSock.h new file mode 100644 index 000000000..a0c834e6f --- /dev/null +++ b/src/include/os/cygwin32/osiSock.h @@ -0,0 +1,82 @@ +/* + * cygwin32 specific include + */ + + +#ifndef osiSockH +#define osiSockH + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#include +#include /* for MAXHOSTNAMELEN */ +#include +#include +#include +#include +#include +#include +#include +#include /* close() and others */ + +void ipAddrToA(const struct sockaddr_in *pInetAddr, + char *pBuf, const unsigned bufSize); + +/* + * as far as I can tell there is no header file for these + */ +int gethostname(char *name, int namelen); +int sethostname(char *name, int namelen); + +#ifdef __cplusplus +} +#endif + +typedef int SOCKET; +#define INVALID_SOCKET (-1) +#define SOCKERRNO errno +#define socket_close(S) close(S) +#define socket_ioctl(A,B,C) ioctl(A,B,C) + +#define FD_IN_FDSET(FD) ((FD) + +#include +#include /* for MAXHOSTNAMELEN */ +#include +#include +#include +#include +#include +#include +#include +#include /* close() and others */ + +void ipAddrToA(const struct sockaddr_in *pInetAddr, + char *pBuf, const unsigned bufSize); + +/* + * as far as I can tell there is no header file for these + */ +int gethostname(char *name, int namelen); +int sethostname(char *name, int namelen); + +#ifdef __cplusplus +} +#endif + +typedef int SOCKET; +#define INVALID_SOCKET (-1) +#define SOCKERRNO errno +#define socket_close(S) close(S) +#define socket_ioctl(A,B,C) ioctl(A,B,C) + +#define FD_IN_FDSET(FD) ((FD)