Failing misc/check-installed-headers-c with new kernel headers.
Florian Weimer
fweimer@redhat.com
Wed Jan 16 21:22:00 GMT 2019
* 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
More information about the Libc-alpha
mailing list