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.3 by root, Fri Apr 5 04:32:50 2013 UTC vs.
Revision 1.4 by root, Fri Apr 5 05:04:59 2013 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines