From: Keir Fraser Subject: Re: [PATCH] Make libelf build on Solaris Date: Sun, 28 Jan 2007 18:16:40 +0000 Message-ID: References: <132cc7bc2a356aa058b8.1170005910@xenbld> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <132cc7bc2a356aa058b8.1170005910@xenbld> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: john.levon@sun.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 28/1/07 4:38 pm, "john.levon@sun.com" wrote: > Make libelf build on Solaris. > > libelf has a number of Linuxisms. Fix them up. Does Solaris define __BYTE_ORDER, __LITTLE_ENDIAN, __BIG_ENDIAN in its byteorder.h? It might make sense to have the libelf code use those instead of the non-underscore-prefixed versions, and have the public libelf header assume the caller has pulled in the necessary headers rather than having at the namespace itself. I think there must be some rationalisation possible here, especially now that Xen itself has byteorder headers. -- Keir