diff options
author | Werner Koch <[email protected]> | 2010-11-02 16:27:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-11-02 16:27:46 +0000 |
commit | 987993a38d12f6de052683711e673fa6bbbdae86 (patch) | |
tree | fd71f8e2a821a54a0f4c0b2243f5ad4c74683c97 /src/w32-io.c | |
parent | 2010-10-28 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-987993a38d12f6de052683711e673fa6bbbdae86.tar.gz gpgme-987993a38d12f6de052683711e673fa6bbbdae86.zip |
First take on changes to allow building with MSC for W32CE.
Fixed regression in plain W32 build.
Diffstat (limited to 'src/w32-io.c')
-rw-r--r-- | src/w32-io.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/w32-io.c b/src/w32-io.c index 12d84373..d7abbf4c 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -28,11 +28,14 @@ #include <assert.h> #include <errno.h> #include <fcntl.h> -#include <sys/time.h> +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif #include <sys/types.h> -#include <windows.h> #include <io.h> +#include "util.h" + #ifdef HAVE_W32CE_SYSTEM #include <assuan.h> #include <winioctl.h> @@ -42,7 +45,6 @@ CTL_CODE (FILE_DEVICE_STREAMS, 2051, METHOD_BUFFERED, FILE_ANY_ACCESS) #endif -#include "util.h" #include "sema.h" #include "priv-io.h" #include "debug.h" @@ -123,6 +125,8 @@ release_fd (int fd) #define pid_to_handle(a) ((HANDLE)(a)) #define handle_to_pid(a) ((int)(a)) +#define fd_to_handle(a) ((HANDLE)(a)) +#define handle_to_fd(a) ((int)(a)) #define READBUF_SIZE 4096 #define WRITEBUF_SIZE 4096 |