[PATCH 1/6] Workaround conflict between Solaris <sys/list.h> & Xorg "list.h" definitions
Alan Coopersmith
alan.coopersmith at oracle.com
Sat Oct 29 10:24:19 PDT 2011
On 10/29/11 00:16, Jeremy Huddleston wrote:
> Yuck. Is there really no other way to do that? What exactly are the conflicts?
It was the best one I saw.
The Solaris definition:
struct list_node {
struct list_node *list_next;
struct list_node *list_prev;
};
struct list {
size_t list_size;
size_t list_offset;
struct list_node list_head;
};
The Xorg definition:
struct list {
struct list *next, *prev;
};
And then there's a couple overlapping function names with
conflicting argument types since the Solaris ones take list_nodes
for the individual list entries instead of struct list themselves:
Solaris:
int list_is_empty(list_t *);
Xorg:
static inline Bool list_is_empty(struct list *head);
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel
mailing list