diff options
author | Werner Koch <[email protected]> | 2010-11-01 14:57:12 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-11-01 14:57:12 +0000 |
commit | 8fbda4494c424a6343ece3a0850372a2e457d641 (patch) | |
tree | 41d5c484f2b0241b19070b45c96dcd194f290451 /src/assuan-io.c | |
parent | Fix bug#1205 (diff) | |
download | libassuan-8fbda4494c424a6343ece3a0850372a2e457d641.tar.gz libassuan-8fbda4494c424a6343ece3a0850372a2e457d641.zip |
Changes to allow building the CE version with MSC.
Diffstat (limited to 'src/assuan-io.c')
-rw-r--r-- | src/assuan-io.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/assuan-io.c b/src/assuan-io.c index c5bbc99..8bb8ed9 100644 --- a/src/assuan-io.c +++ b/src/assuan-io.c @@ -22,14 +22,23 @@ #endif #include <time.h> -#include <sys/time.h> -#include <sys/types.h> +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif #ifdef HAVE_SYS_SOCKET_H # include <sys/socket.h> #endif -#include <unistd.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif #include <errno.h> #ifdef HAVE_W32_SYSTEM +# ifdef HAVE_WINSOCK2_H +# include <winsock2.h> +# endif # include <windows.h> #else # include <sys/wait.h> |