This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Failing misc/check-installed-headers-c with new kernel headers.
- From: Florian Weimer <fweimer at redhat dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, DJ Delorie <dj at redhat dot com>, Arjun Shankar <arjun at redhat dot com>
- Date: Wed, 16 Jan 2019 22:21:57 +0100
- Subject: Re: Failing misc/check-installed-headers-c with new kernel headers.
- References: <30a12210-dbcc-f92f-ad59-2b1c5ad10136@redhat.com>
* Carlos O'Donell:
> Should we expand the regexp in some way to ignore text within single-line
> comments that we can easily detect?
I think we should use #pragma GCC poison in $cih_test_c, like this:
diff --git a/scripts/check-installed-headers.sh b/scripts/check-installed-headers.sh
index 8e7beffd82..f9e39eb995 100644
--- a/scripts/check-installed-headers.sh
+++ b/scripts/check-installed-headers.sh
@@ -144,6 +144,12 @@ EOF
inappropriate for this test. */
#undef _LIBC
#undef _GNU_SOURCE
+
+/* Obsolete type names. */
+#pragma GCC poison ushort
+#pragma GCC poison ulong
+#pragma GCC poison uint
+
/* The library mode is selected here rather than on the command line to
ensure that this selection wins. */
$expanded_lib_mode
And then get rid of the grep.
Thanks,
Florian