From owner-freebsd-questions@FreeBSD.ORG Mon May 24 07:50:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7797B16A4CE for ; Mon, 24 May 2004 07:50:00 -0700 (PDT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4CBB43D41 for ; Mon, 24 May 2004 07:49:59 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp33-50.lns1.adl1.internode.on.net [150.101.33.50]) i4OEn7Zq091644; Tue, 25 May 2004 00:19:11 +0930 (CST) From: Malcolm Kay Organization: at home To: "Arne Dirks" , freebsd-questions@freebsd.org Date: Tue, 25 May 2004 00:19:06 +0930 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405250019.06592.malcolm.kay@internode.on.net> Subject: Re: sigset_t X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 14:50:00 -0000 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