summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/libnet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/libnet.h b/win32/libnet.h
index 56e234d..2b1aa10 100644
--- a/win32/libnet.h
+++ b/win32/libnet.h
@@ -80,6 +80,11 @@ extern "C" {
#pragma comment (lib,"iphlpapi") /* IP Helper */
#pragma comment (lib,"wpcap") /* Winpcap */
#pragma comment (lib,"packet")
+
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#else
+#include <unistd.h>
#endif
/* FIXME this needs manual update during release packaging. */