From: Ian Jackson Subject: Re: libxl: build fix Date: Mon, 8 Nov 2010 16:38:18 +0000 Message-ID: <19672.10106.765818.153896@mariner.uk.xensource.com> References: <201011051608.47100.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201011051608.47100.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Christoph Egger writes ("[Xen-devel] libxl: build fix"): > Attached patch fixes libxl build. > libgen.h is needed for basename(). Nacked-by: Ian Jackson Did you test this change ? Looking at the manpage I have here, and the xl code, the version of basename() expected by the libxl cpuid code is the GNU one, not the POSIX one, and they have different semantics. I think we will have to open code an implementation of basename. I see that there is a lot of const-correctness misssing; if filename had been declared const char* as it should your compiler would have spotted the problem. Ian.