summaryrefslogtreecommitdiff
path: root/extra/scripts/install_headers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/scripts/install_headers.sh')
-rwxr-xr-xextra/scripts/install_headers.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/scripts/install_headers.sh b/extra/scripts/install_headers.sh
index 0d58b200a..6d73ad2c6 100755
--- a/extra/scripts/install_headers.sh
+++ b/extra/scripts/install_headers.sh
@@ -45,7 +45,8 @@ while read -r filename; do
# NB: unifdef exits with 1 if output is not
# exactly the same as input. That's ok.
# Do not abort the script if unifdef "fails"!
- "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" >"$2/$filename"
+ "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" \
+ | grep -v '^libc_hidden_proto[ ]*([a-zA-Z0-9_]*)$' >"$2/$filename"
fi
done
)