From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 6 00:40:19 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 807C216A4B3 for ; Mon, 6 Oct 2003 00:40:19 -0700 (PDT) Received: from mail.mawit.com (ip212-226-165-194.adsl.kpnqwest.fi [212.226.165.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3976F43FE3 for ; Mon, 6 Oct 2003 00:40:17 -0700 (PDT) (envelope-from jau@mawit.com) Received: from mawit.com ([::ffff:127.0.0.1]) by mail.mawit.com with esmtp; Mon, 06 Oct 2003 10:40:14 +0300 Received: from 62.78.135.6 (SquirrelMail authenticated user jau) by office.mawit.com with HTTP; Mon, 6 Oct 2003 10:40:14 +0300 (EEST) Message-ID: <3131.62.78.135.6.1065426014.squirrel@office.mawit.com> Date: Mon, 6 Oct 2003 10:40:14 +0300 (EEST) From: "Jukka A. Ukkonen" To: freebsd-bugs@FreeBSD.org In-Reply-To: <200310020933.h929XI8r028284@freefall.freebsd.org> References: <200310020933.h929XI8r028284@freefall.freebsd.org> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.7) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 0.37 Subject: Minor change to silence complaints from cpp X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 07:40:19 -0000 E.g. when compiling X-server cpp has been complaining about _POSIX_C_SOURCE not being defined. This was easily silenced with the following minor change... --- /usr/include/sys/cdefs.h.orig Mon Oct 6 10:26:47 2003 +++ /usr/include/sys/cdefs.h Mon Oct 6 10:28:06 2003 @@ -270,13 +270,13 @@ */ /* Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1. */ -#if _POSIX_C_SOURCE == 1 +#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE == 1) #undef _POSIX_C_SOURCE /* Probably illegal, but beyond caring now. */ #define _POSIX_C_SOURCE 199009 #endif /* Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2. */ -#if _POSIX_C_SOURCE == 2 +#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE == 2) #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199209 #endif -- Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Mawit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Mawit.Com (Home) +358-9-6215-280 / Internet: ukkonen(a)nic.funet.fi v Internet: jau(a)iki.fi + + + + My opinions are mine and mine alone, not my employers. + + + +