From patchwork Fri Jun 2 17:07:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 20742 Received: (qmail 52353 invoked by alias); 2 Jun 2017 17:07:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 52340 invoked by uid 89); 2 Jun 2017 17:07:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Fri, 2 Jun 2017 17:07:42 +0000 From: Joseph Myers To: Subject: Fix sigevent namespace (bug 21543) Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) 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. 2017-06-02 Joseph Myers [BZ #21543] * signal/signal.h: Only include and if [__USE_POSIX199309], not if [__USE_XOPEN_EXTENDED]. diff --git a/signal/signal.h b/signal/signal.h index 947873e..21d628d 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