ntdll: Work around a conflict between Wine and Solaris list.h.

Signed-off-by: Francois Gouget <fgouget@free.fr>
This commit is contained in:
Francois Gouget 2015-10-05 10:01:56 +02:00 committed by Alexandre Julliard
parent 82e1830f5c
commit 67c2e06fcd
3 changed files with 31 additions and 4 deletions

View File

@ -48,7 +48,22 @@
#include <sys/attr.h>
#endif
#ifdef HAVE_SYS_VNODE_H
/* Work around a conflict with Solaris' system list defined in sys/list.h. */
#define list SYSLIST
#define list_next SYSLIST_NEXT
#define list_prev SYSLIST_PREV
#define list_head SYSLIST_HEAD
#define list_tail SYSLIST_TAIL
#define list_move_tail SYSLIST_MOVE_TAIL
#define list_remove SYSLIST_REMOVE
#include <sys/vnode.h>
#undef list
#undef list_next
#undef list_prev
#undef list_head
#undef list_tail
#undef list_move_tail
#undef list_remove
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>

View File

@ -61,7 +61,22 @@
# include <utime.h>
#endif
#ifdef HAVE_SYS_VFS_H
/* Work around a conflict with Solaris' system list defined in sys/list.h. */
#define list SYSLIST
#define list_next SYSLIST_NEXT
#define list_prev SYSLIST_PREV
#define list_head SYSLIST_HEAD
#define list_tail SYSLIST_TAIL
#define list_move_tail SYSLIST_MOVE_TAIL
#define list_remove SYSLIST_REMOVE
# include <sys/vfs.h>
#undef list
#undef list_next
#undef list_prev
#undef list_head
#undef list_tail
#undef list_move_tail
#undef list_remove
#endif
#ifdef HAVE_SYS_MOUNT_H
# include <sys/mount.h>

View File

@ -44,10 +44,7 @@
#include <sys/statvfs.h>
#endif
#ifdef HAVE_SYS_VFS_H
/*
* Solaris defines its system list in sys/list.h.
* This need to be workaround it here.
*/
/* Work around a conflict with Solaris' system list defined in sys/list.h. */
#define list SYSLIST
#define list_next SYSLIST_NEXT
#define list_prev SYSLIST_PREV