From owner-freebsd-questions@FreeBSD.ORG Mon May 24 07:12:12 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 DED5016A4CE for ; Mon, 24 May 2004 07:12:12 -0700 (PDT) Received: from bnc.net (colossus.bnc.net [194.39.192.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0786D43D39 for ; Mon, 24 May 2004 07:12:12 -0700 (PDT) (envelope-from ad@bnc.net) Received: by bnc.net (CommuniGate Pro PIPE 4.2b2) with PIPE id 657872; Mon, 24 May 2004 16:10:58 +0200 Received: from [217.225.74.125] (account ad@bnc.net) by bnc.net (CommuniGate Pro WebUser 4.2b2) with HTTP id 657870 for freebsd-questions@FreeBSD.org; Mon, 24 May 2004 16:10:29 +0200 From: "Arne Dirks" To: freebsd-questions@FreeBSD.org X-Mailer: CommuniGate Pro WebUser Interface v.4.2b2 Date: Mon, 24 May 2004 16:10:29 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Transfer-Encoding: 8bit X-MailScanner-Information: Please contact info@mailomat.net for more information (colossus) X-MailScanner: Found to be clean Subject: 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:12:13 -0000 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. A piece of test code gives no problems: #include main () { sigset_t sig; } Does anyone have a solution for this problem? arne