From: Joseph Myers Date: Fri, 2 Jun 2017 19:47:03 +0000 (+0000) Subject: Fix sigevent namespace (bug 21543). X-Git-Tag: glibc-2.26~436 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c65eec494676789bc4695561e229ce3ee33be84;p=thirdparty%2Fglibc.git Fix sigevent namespace (bug 21543). signal.h defines the sigevent structure and constants if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED. The __USE_XOPEN_EXTENDED condition is incorrect; this structure does not appear in XSI standards before Unix98 (which implies __USE_POSIX199309). This patch fixes the conditionals accordingly (the existing conditional is correct for siginfo_t, just not for sigevent). Tested for x86_64. This does not allow any conform/ XFAILs to be removed because of other signal.h namespace bugs. [BZ #21543] * signal/signal.h: Only include and if [__USE_POSIX199309], not if [__USE_XOPEN_EXTENDED]. --- diff --git a/ChangeLog b/ChangeLog index f37370c60c1..8495478e82e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-06-02 Joseph Myers + + [BZ #21543] + * signal/signal.h: Only include and + if [__USE_POSIX199309], not if + [__USE_XOPEN_EXTENDED]. + 2017-06-02 Florian Weimer * sysdeps/posix/getaddrinfo.c (gethosts): Eliminate another diff --git a/signal/signal.h b/signal/signal.h index 947873ea8ec..21d628dbd26 100644 --- a/signal/signal.h +++ b/signal/signal.h @@ -55,8 +55,11 @@ typedef __uid_t uid_t; #if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED # include -# include # include +#endif + +#ifdef __USE_POSIX199309 +# include # include #endif