From: Ian Jackson Subject: Re: [PATCH v2] xenpaging: remove _XOPEN_SOURCE Date: Thu, 15 Dec 2011 17:36:54 +0000 Message-ID: <20202.12342.345953.443312@mariner.uk.xensource.com> References: <3bac38f7a427af3eb9f6.1323871739@loki.upc.es> <20202.11863.501987.497546@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7735531843053127155==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============7735531843053127155== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Roger Pau Monné writes ("Re: [Xen-devel] [PATCH v2] xenpaging: remove _XOPEN_SOURCE"): > Olaf Hering acked the patch with the condition that I add the error > message, since you didn't say anything I through you where fine with > that. Should I send the patch with _NETBSD_SOURCE instead? Did you not see my message, copy below ? Thanks, Ian. From: Ian Jackson To: Roger Pau Monné Cc: Laszlo Ersek , "xen-devel@lists.xensource.com" , Ian Campbell Subject: Re: [Xen-devel] [PATCH] xenpaging: remove XOPEN_SOURCE Message-ID: <20199.26338.308105.913566@mariner.uk.xensource.com> Date: Tue, 13 Dec 2011 14:53:22 +0000 Roger Pau Monné writes ("Re: [Xen-devel] [PATCH] xenpaging: remove XOPEN_SOURCE"): > 2011/12/13 Laszlo Ersek : > > The stuff made visible by _GNU_SOURCE (with glibc) includes everything > > _XOPEN_SOURCE makes visible [3]. [4] introduced it because of asprintf(). > > If it's not necessary I think it's best to remove the definition, to > avoid having a lot of useless defines all over the code. I disagree. The purpose of these kind of macros is purely to allow systems to claim standards-compliance and absence of namespace pollution, by default. The logical conclusion is that these kind of problems should be fixed by adding more requests for platform-specific features, not removing them. In this case that would mean adding: #define _NETBSD_SOURCE If the prevalance of these kind of macros is getting irritating they can easily be moved into a common header file somewhere. Ian. --===============7735531843053127155== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============7735531843053127155==--