summaryrefslogtreecommitdiff
path: root/net/nmap/patches
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-09 15:25:47 +0000
committerrillig <rillig>2007-01-09 15:25:47 +0000
commit5ef9d73f42ceb523d680016927c5ca5e668536f8 (patch)
tree985f6d254a90c35ff094b0d72fc0b74123d328d8 /net/nmap/patches
parent7f1a0509e7ca47da3ebb668cdc1bb3cd576aed3e (diff)
downloadpkgsrc-5ef9d73f42ceb523d680016927c5ca5e668536f8.tar.gz
Fixed building with SunPro on Solaris.
Diffstat (limited to 'net/nmap/patches')
-rw-r--r--net/nmap/patches/patch-aj15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/nmap/patches/patch-aj b/net/nmap/patches/patch-aj
new file mode 100644
index 00000000000..56e5cd7a66c
--- /dev/null
+++ b/net/nmap/patches/patch-aj
@@ -0,0 +1,15 @@
+$NetBSD: patch-aj,v 1.1 2007/01/09 15:25:48 rillig Exp $
+
+SunPro cannot handle struct { ...; union { ...; variable length array }}.
+
+--- libdnet-stripped/include/dnet/os.h.orig 2005-08-24 02:06:27.000000000 +0200
++++ libdnet-stripped/include/dnet/os.h 2007-01-09 16:18:57.602654556 +0100
+@@ -120,7 +120,7 @@ typedef unsigned int ssiz
+ # ifdef __GNUC__
+ # define __flexarr [0]
+ # else
+-# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
++# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && !defined(__SUNPRO_C)
+ # define __flexarr []
+ # elif defined(_WIN32)
+ /* MS VC++ -- using just [] may work, but gives a non-standard extension warning */