From 987993a38d12f6de052683711e673fa6bbbdae86 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 2 Nov 2010 16:27:46 +0000 Subject: First take on changes to allow building with MSC for W32CE. Fixed regression in plain W32 build. --- src/w32-io.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/w32-io.c') 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 #include #include -#include +#ifdef HAVE_SYS_TIME_H +# include +#endif #include -#include #include +#include "util.h" + #ifdef HAVE_W32CE_SYSTEM #include #include @@ -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 -- cgit v1.2.3