aboutsummaryrefslogtreecommitdiffstats
path: root/src/ath.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ath.h')
-rw-r--r--src/ath.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ath.h b/src/ath.h
index 8a7a5072..9ada5502 100644
--- a/src/ath.h
+++ b/src/ath.h
@@ -28,6 +28,9 @@
/* fixme: Check how we did it in libgcrypt. */
struct msghdr { int dummy; };
typedef int socklen_t;
+# if defined(HAVE_W32CE_SYSTEM) && defined(_MSC_VER)
+# include <winsock2.h>
+# endif
# include <windows.h>
# include <io.h>
@@ -40,7 +43,9 @@
# include <sys/time.h>
# endif
# endif
-# include <sys/types.h>
+# ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+# endif
# include <sys/socket.h>
#endif /*!HAVE_W32_SYSTEM*/