Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 09:01:38 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Daniel Eischen <eischen@pcnet1.pcnet.com>
Cc:        Bruce Evans <bde@zeta.org.au>, Kevin Day <toasty@shell.dragondata.com>, current@FreeBSD.ORG, bde@FreeBSD.ORG
Subject:   Re: function name collision on "getcontext" with ports/editors/joe
Message-ID:  <3C67F8F2.EB36BA9A@mindspring.com>
References:  <Pine.GSO.4.10.10202111008440.16848-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote:
> It breaks more than that.  Applications that just want to use
> sigaction, sigaltstack, etc, only need to include <signal.h>,
> but that also defines sigreturn as:
> 
>   int     sigreturn __P((ucontext_t *));
> 
> Removing <sys/ucontext.h> from <sys/signal.h> prevents ucontext_t
> from being defined, so all users of <signal.h> would choke.
> 
> We can change the prototype of sigreturn back to struct sigcontext *,
> or just forward declare ucontext_t in <signal.h> or <sys/signal.h>.

Forward declare it.  People who need its internals will
include the proper header.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C67F8F2.EB36BA9A>