From 8d3bd947483f50b57aee7c35c07dc1927d6e8a27 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 28 Sep 2016 07:28:00 -0400 Subject: [PATCH] Minor corrections to scripts/check-installed-headers.sh. * scripts/check-installed-headers.sh: Generalize treatment of sys/elf.h to all target architectures. --- ChangeLog | 3 +++ scripts/check-installed-headers.sh | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0484809261..88ea4b1ed1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-09-28 Zack Weinberg + * scripts/check-installed-headers.sh: Generalize treatment of + sys/elf.h to all target architectures. + * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally- deleted typedef ucontext_t. diff --git a/scripts/check-installed-headers.sh b/scripts/check-installed-headers.sh index 7fbc725c0f..87d6142fa6 100644 --- a/scripts/check-installed-headers.sh +++ b/scripts/check-installed-headers.sh @@ -77,9 +77,14 @@ for header in "$@"; do (bits/* | regexp.h | rpcsvc/*.x) continue;; - # sys/elf.h and sys/vm86.h are "unsupported on x86-64" and - # #error out on that target. - (sys/elf.h | sys/vm86.h) + # All extant versions of sys/elf.h contain nothing more than an + # exhortation (either a #warning or an #error) to use sys/procfs.h + # instead, plus an inclusion of that header. + (sys/elf.h) + continue;; + + # sys/vm86.h is "unsupported on x86-64" and errors out on that target. + (sys/vm86.h) case "$is_x86_64" in (yes) continue;; (no) ;; -- 2.11.4.GIT