This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457)
- From: Zack Weinberg <zackw at panix dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 22 May 2017 18:51:17 -0400
- Subject: Re: Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457)
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.20.1705222234140.9690@digraph.polyomino.org.uk>
On Mon, May 22, 2017 at 6:34 PM, Joseph Myers <joseph@codesourcery.com> wrote:
> The various sys/ucontext.h headers include <signal.h> and all the
> headers split out of <bits/sigstack.h>. (Except that the powerpc
> version does not include <signal.h>.)
>
> None of the standard versions defining ucontext.h require or permit
> such inclusions; rather, they all say that the stack_t and sigset_t
> types from signal.h are defined. This patch fixes the headers to
> include just the bits/ headers for those types (and the existing
> includes of bits/sigcontext.h).
Looks good to me.