diff --git a/hints/linux.sh b/hints/linux.sh index b3cd322dc8051..a3e476e4f6a93 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -125,6 +125,15 @@ case "`${cc:-cc} -V 2>&1`" in d_attribute_pure='undef' d_attribute_unused='undef' d_attribute_warn_unused_result='undef' + case "$cc" in + *c99) # Without -Xa c99 errors on some Linux system headers + # in particular zero sized arrays at the end of structs + case "$ccflags" in + *-Xa*) ;; + *) ccflags="$ccflags -Xa" ;; + esac + ;; + esac ;; esac