$NetBSD: patch-aj,v 1.3 2009/07/20 19:40:08 adrianp Exp $ --- libdnet-stripped/include/dnet/os.h.orig 2009-06-24 22:35:54.000000000 +0100 +++ libdnet-stripped/include/dnet/os.h @@ -115,7 +115,7 @@ # 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 [] works but gives a "nonstandard extension" warning */