… | |
… | |
18 | #include <windows.h> |
18 | #include <windows.h> |
19 | #include <io.h> |
19 | #include <io.h> |
20 | #include <sys/cygwin.h> |
20 | #include <sys/cygwin.h> |
21 | |
21 | |
22 | #define ioctlsocket(a,b,c) ioctl (a, b, c) |
22 | #define ioctlsocket(a,b,c) ioctl (a, b, c) |
23 | #define _open_osfhandle(h,m) cygwin_attach_handle_to_fd ("/dev/pipe", -1, (HANDLE)h, 1, GENERIC_READ | GENERIC_WRITE) |
23 | #define _open_osfhandle(h,m) cygwin_attach_handle_to_fd ("/dev/tcp", -1, (HANDLE)h, 1, GENERIC_READ | GENERIC_WRITE) |
24 | typedef int SOCKET; |
24 | typedef int SOCKET; |
25 | |
25 | |
26 | #else |
26 | #else |
27 | |
27 | |
28 | #include <stddef.h> // needed by broken bsds for NULL used in sys/uio.h |
28 | #include <stddef.h> // needed by broken bsds for NULL used in sys/uio.h |