From owner-freebsd-current Mon Feb 11 9:16:50 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 1A8D337B404; Mon, 11 Feb 2002 09:16:48 -0800 (PST) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.1/8.12.1) with ESMTP id g1BHGiko003046; Mon, 11 Feb 2002 12:16:44 -0500 (EST) Date: Mon, 11 Feb 2002 12:16:44 -0500 (EST) From: Daniel Eischen To: Terry Lambert Cc: Bruce Evans , Kevin Day , current@FreeBSD.ORG, bde@FreeBSD.ORG Subject: Re: function name collision on "getcontext" with ports/editors/joe In-Reply-To: <3C67F8F2.EB36BA9A@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 11 Feb 2002, Terry Lambert wrote: > Daniel Eischen wrote: > > It breaks more than that. Applications that just want to use > > sigaction, sigaltstack, etc, only need to include , > > but that also defines sigreturn as: > > > > int sigreturn __P((ucontext_t *)); > > > > Removing from prevents ucontext_t > > from being defined, so all users of would choke. > > > > We can change the prototype of sigreturn back to struct sigcontext *, > > or just forward declare ucontext_t in or . > > Forward declare it. People who need its internals will > include the proper header. How do you easily forward declare something that is a typedef? You could forward declare struct __ucontext and use a pointer to that as the argument to sigreturn, but that doesn't seem right as it is relying on how ucontext_t is defined. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message