Date: Tue, 25 May 2004 00:19:06 +0930 From: Malcolm Kay <malcolm.kay@internode.on.net> To: "Arne Dirks" <ad@bnc.net>, freebsd-questions@freebsd.org Subject: Re: sigset_t Message-ID: <200405250019.06592.malcolm.kay@internode.on.net> In-Reply-To: <web-657870@bnc.net> References: <web-657870@bnc.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 24 May 2004 23:40, Arne Dirks wrote: > Hi folks, > > I have just coded something on my Mac with signal > funcionalities. On my machine (OS X 10.3) it compiles > without problems, but on a FreeBSD 5.2.1 machine I get an > error. The compiler says: > > main.c:10: error: invalid initializer > *** Error code 1 > > > My Code was: > > 10: sigset_t sig = SIGALRM; > > > As I said, on a Mac it compiles well, but the BSD-machine > is giving the named error. I think there must be a type > mismatch, but I cannot find any declaration for sigset_t > in the include dir. On 4.9 it is defined in include/sys/signal.h typedef struct __sigset { unsigned int __bits[_SIG_WORDS]; } sigset_t; Which does not muatch the integer type of SIGALRM. Malcolm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405250019.06592.malcolm.kay>