summaryrefslogtreecommitdiff
path: root/net/nmap/patches/patch-aj
blob: 56e5cd7a66c4288815d94c91092edeef6b7ba92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 */