diff options
Diffstat (limited to 'net/nmap/patches')
-rw-r--r-- | net/nmap/patches/patch-aj | 15 |
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 */ |