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/posix-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/posix-io.c')
-rw-r--r-- | src/posix-io.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/posix-io.c b/src/posix-io.c index 5c3def03..762051e7 100644 --- a/src/posix-io.c +++ b/src/posix-io.c @@ -28,8 +28,12 @@ #include <errno.h> #include <signal.h> #include <fcntl.h> -#include <unistd.h> -#include <sys/time.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif #include <sys/types.h> #include <sys/wait.h> #ifdef HAVE_SYS_UIO_H @@ -37,7 +41,6 @@ #endif #include <ctype.h> #include <sys/resource.h> -#include <unistd.h> #include "util.h" #include "priv-io.h" |