aboutsummaryrefslogtreecommitdiff
path: root/ports/nmap/fix-ssize_t.patch
blob: 36103a8c246d73d0f3c7945e8ce1c1bb9f26c1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/libdnet-stripped/include/dnet/os.h b/libdnet-stripped/include/dnet/os.h
index 55a21b9..544ebd8 100644
--- a/libdnet-stripped/include/dnet/os.h
+++ b/libdnet-stripped/include/dnet/os.h
@@ -23,7 +23,11 @@
   typedef u_short	uint16_t;
   typedef u_int		uint32_t;
 # ifndef __CYGWIN__
+#ifdef _WIN64
+  typedef __int64	ssize_t;
+#else
   typedef long		ssize_t;
+#endif
 # endif
 #else
 # include <sys/param.h>