From: Ian Jackson Subject: Re: [PATCH] xenpaging: remove XOPEN_SOURCE Date: Tue, 13 Dec 2011 14:53:22 +0000 Message-ID: <20199.26338.308105.913566@mariner.uk.xensource.com> References: <7697ee23b08b8eaca9ae.1323768649@loki.upc.es> <1323770544.20077.268.camel@zakaz.uk.xensource.com> <4EE72B7C.7030006@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: "xen-devel@lists.xensource.com" , Laszlo Ersek , Ian Campbell List-Id: xen-devel@lists.xenproject.org Roger Pau Monn=E9 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.