ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-FDPass/FDPass.xs
(Generate patch)

Comparing IO-FDPass/FDPass.xs (file contents):
Revision 1.2 by root, Fri Apr 5 04:26:41 2013 UTC vs.
Revision 1.4 by root, Fri Apr 5 05:04:59 2013 UTC

1/* GetCurrentProcessId is XP and up, which means in all supported versions */
2/* but older SDK's might need this */
3#define _WIN32_WINNT NTDDI_WINXP
4
5#ifdef __sun 1#ifdef __sun
6 #define _XOPEN_SOURCE 1 2 #define _XOPEN_SOURCE 1
7 #define _XOPEN_SOURCE_EXTENDED 1 3 #define _XOPEN_SOURCE_EXTENDED 1
8 #define __EXTENSIONS__ 1 4 #define __EXTENSIONS__ 1
9#endif 5#endif
22 #include <windows.h> 18 #include <windows.h>
23 #include <io.h> 19 #include <io.h>
24 #include <sys/cygwin.h> 20 #include <sys/cygwin.h>
25 21
26 #define ioctlsocket(a,b,c) ioctl (a, b, c) 22 #define ioctlsocket(a,b,c) ioctl (a, b, c)
27 #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)
28 typedef int SOCKET; 24 typedef int SOCKET;
29 25
30#else 26#else
31 27
32 #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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines