[Bug 21320] New: wine/list.h has namespace conflicts with sys/queue.h
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Jan 10 18:43:39 CST 2010
http://bugs.winehq.org/show_bug.cgi?id=21320
Summary: wine/list.h has namespace conflicts with sys/queue.h
Product: Wine
Version: unspecified
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs at winehq.org
ReportedBy: jeremyhu at freedesktop.org
sys/queue.h on FreeBSD, darwin, etc provide LIST_ENTRY macros which conflict
with those in wine/list.h ... this has led to problems such as:
http://trac.macports.org/ticket/22342
A workaround for this was pushed into wine a while back, but it is merely a
hackish workaround. If you permute the order in which headers are included, or
if system headers happen to add an include on sys/queue.h, you may end up not
being able to build wine. This is what happened in the above external ticket.
If you simply add a '#include <sys/queue.h>' to
/usr/include/dispatch/dispatch.h, wine stops building here on darwin. I'm sure
it would be easy to find a similar case on FreeBSD.
One fix is to avoid conflicting with the sys/queue.h namespace and use
something like WINE_LIST_ENTRY
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list