From owner-freebsd-standards@FreeBSD.ORG Fri Aug 4 06:56:34 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AECEE16A4E5 for ; Fri, 4 Aug 2006 06:56:34 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep17-int.chello.at (viefep13-int.chello.at [213.46.255.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80DE843D49 for ; Fri, 4 Aug 2006 06:56:33 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at ([213.47.85.26]) by viefep17-int.chello.at (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060804065632.XQLX706.viefep17-int.chello.at@wombat.fafoe.narf.at>; Fri, 4 Aug 2006 08:56:32 +0200 Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 65906BC7E; Fri, 4 Aug 2006 08:56:30 +0200 (CEST) Date: Fri, 4 Aug 2006 08:56:30 +0200 From: Stefan Farfeleder To: Mikhail Teterin Message-ID: <20060804065629.GB89735@wombat.fafoe.narf.at> Mail-Followup-To: Mikhail Teterin , standards@freebsd.org References: <200608031547.34386.mi+mx@aldan.algebra.com> <20060803213839.GH33267@wombat.fafoe.narf.at> <200608031817.23847.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200608031817.23847.mi+mx@aldan.algebra.com> User-Agent: Mutt/1.5.12-2006-07-14 Cc: standards@freebsd.org Subject: Re: conundrum: _C99_SOURCE vs. sigset X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 06:56:34 -0000 On Thu, Aug 03, 2006 at 06:17:23PM -0400, Mikhail Teterin wrote: > четвер 03 серпень 2006 17:38, Stefan Farfeleder написав: > > Try -D_POSIX_C_SOURCE=200112. > > Thanks, I will. > > > The macro _C99_SOURCE is for pure C99 code and _ANSI_SOURCE for C90 > > code.  Both don't include the header. > > They do -- it gets included from iostream, even when I define one of those. No, what I meant was that isn't defined by neither C90 nor C99 but by POSIX. Defining _C99_SOURCE or _ANSI_SOURCE hides additional POSIX/BSD identifiers in shared headers which is a bad idea if you want to include ; as you've seen it leads to errors. Stefan