diff options
author | root <root> | 2011-07-19 04:56:43 +0000 |
---|---|---|
committer | root <root> | 2011-07-19 04:56:43 +0000 |
commit | 506fc54a2fe09032d61dda3a63191217ee187648 (patch) | |
tree | 12bb078a5f1c448fab7cf61213a1423589e1e407 | |
parent | 96045cbe9a089897107decefa9ff97d0d3b2810e (diff) |
*** empty log message ***
-rw-r--r-- | eio.c | 6 | ||||
-rw-r--r-- | xthread.h | 1 |
2 files changed, 5 insertions, 2 deletions
@@ -73,6 +73,10 @@ # define ELOOP EDOM #endif +#if !defined(ENOTSOCK) && defined(WSAENOTSOCK) +# define ENOTSOCK WSAENOTSOCK +#endif + static void eio_destroy (eio_req *req); #ifndef EIO_FINISH @@ -105,7 +109,7 @@ static void eio_destroy (eio_req *req); #ifdef EIO_STRUCT_STATI64 #define stat(path,buf) _stati64 (path,buf) - #define fstat(fd,buf) _fstati64 (path,buf) + #define fstat(fd,buf) _fstati64 (fd,buf) #endif #define lstat(path,buf) stat (path,buf) #define fsync(fd) (FlushFileBuffers ((HANDLE)EIO_FD_TO_WIN32_HANDLE (fd)) ? 0 : EIO_ERRNO (EBADF, -1)) @@ -16,7 +16,6 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef _WIN32 -typedef int ssize_t; #define NTDDI_VERSION NTDDI_WIN2K // needed to get win2000 api calls #define _WIN32_WINNT 0x400 |