From owner-freebsd-stable Fri Feb 5 09:39:42 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17603 for freebsd-stable-outgoing; Fri, 5 Feb 1999 09:39:42 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17598 for ; Fri, 5 Feb 1999 09:39:40 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id JAA01490; Fri, 5 Feb 1999 09:39:38 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id JAA22573; Fri, 5 Feb 1999 09:39:38 -0800 (PST) (envelope-from jdp@polstra.com) Date: Fri, 5 Feb 1999 09:39:38 -0800 (PST) Message-Id: <199902051739.JAA22573@vashon.polstra.com> To: daren@partners-dsi.com Subject: Re: struct in sigaltstack wrong?? Newsgroups: polstra.freebsd.stable In-Reply-To: <010c01be508f$f2497b80$ca98f026@partnersdsi.com> Organization: Polstra & Co., Seattle, WA Cc: stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <010c01be508f$f2497b80$ca98f026@partnersdsi.com>, Daren R. Sefcik wrote: > While trying to compile the FWTK > it would fail everytime at the /usr/include/sys/signal.h > line 163 with: > > cc -O -pipe -I.. -D_SKEY_INTERNAL -c daemon.c > In file included from daemon.c:14: > /usr/include/sys/signal.h:163: parse error before `size_t' > /usr/include/sys/signal.h:163: warning: no semicolon at end of struct or > union > /usr/include/sys/signal.h:165: parse error before `}' > *** Error code 1 > > from the signal.h file line 163: > > /* > * Structure used in sigaltstack call. > */ > struct sigaltstack { > char *ss_sp; /* signal stack base */ > size_t ss_size; /* signal stack length */ > int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */ > > > > looking at the man page for sigaltstack it uses char & long & int > I changed the size_t to long and the compile finished fine. > Is the signal.h file wrong or is the FWTK wrong??? The work-around is to change FWTK to include first. But that shouldn't be necessary. I'd say the bug is in (or , which it includes). To be standard conforming, the header file should be self-sufficient. Probably should use _BSD_SIZE_T_ from if it is defined, to keep from polluting the application's namespace with size_t. Bruce probably has a better answer. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message