All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Anthony Perard <anthony.perard@citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH] libxl: Include a version of bsd's queue.h
Date: Wed, 26 Oct 2011 10:25:56 +0200	[thread overview]
Message-ID: <4EA7C414.8030809@amd.com> (raw)
In-Reply-To: <1319617320.9436.6.camel@zakaz.uk.xensource.com>

On 10/26/11 10:22, Ian Campbell wrote:
> On Wed, 2011-10-26 at 09:14 +0100, Christoph Egger wrote:
>> On 10/25/11 19:58, Ian Jackson wrote:
>>> Ian Jackson writes ("[Xen-devel] [PATCH] libxl: Include a version of bsd's queue.h"):
>>>> We would like some linked list macros which are (a) well known to be
>>>> sane and (b) typesafe.  BSD's queue.h meets these criteria.
>>>>
>>>> The files in this changeset were obtained with:
>>>>     svn co -r 221843 svn://svn.freebsd.org/base/head/sys/sys/
>>>>     svn co -r 221843 svn://svn.freebsd.org/base/head/share/man/man3
>>>
>>> I posted this because I noticed (too late) that libxl_qmp.c includes
>>> <sys/queue.h>   and uses some macros that are only available in some
>>> queue.h versions.  This is not ideal for portability of course.
>>>
>>> I think it would be good to include this massaged queue.h and use it
>>> in libxl_qmp.c.
>>
>> These headers cause build errors on *BSD due to collisions with the
>> native headers. Two solutions:
>>
>> - Only use them on platforms where they do not exist
>> - Add a namespace prefix to the macros and use them consequently
>
> Ian provided a script which adds a namespace to these files at build
> time, or at least was supposed to. If it isn't working properly then we
> need to see the actual failures you are seeing.

Ah, ok. I missed the script on review.

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

  reply	other threads:[~2011-10-26  8:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25 17:35 [PATCH] libxl: Include a version of bsd's queue.h Ian Jackson
2011-10-25 17:58 ` Ian Jackson
2011-10-26  8:14   ` Christoph Egger
2011-10-26  8:22     ` Ian Campbell
2011-10-26  8:25       ` Christoph Egger [this message]
2011-10-26  8:27 ` Ian Campbell
2011-10-26  8:44 ` Roger Pau Monné
2011-10-26  8:51   ` Ian Campbell
2011-10-26  8:56     ` Roger Pau Monné
2011-10-27 16:58   ` Ian Jackson
2011-10-26 10:49 ` David Vrabel
2011-10-27 16:56   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EA7C414.8030809@amd.com \
    --to=christoph.egger@amd.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.