diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh index cf268928f..10909d083 100755 --- a/hw/xfree86/sdksyms.sh +++ b/hw/xfree86/sdksyms.sh @@ -343,6 +343,10 @@ BEGIN { n = 1; } + # only match _X_EXPORT + if ($n !~ /^(__attribute__..visibility..default|__global)/) + next; + # skip attribute, if any while ($n ~ /^(__attribute__|__global)/ || # skip modifiers, if any