aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2/include/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/blktap2/include/list.h')
-rw-r--r--tools/blktap2/include/list.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/blktap2/include/list.h b/tools/blktap2/include/list.h
index 03a524be01..3efc376584 100644
--- a/tools/blktap2/include/list.h
+++ b/tools/blktap2/include/list.h
@@ -2,6 +2,7 @@
* list.h
*
* This is a subset of linux's list.h intended to be used in user-space.
+ * XXX The namespace conflicts with NetBSD's <sys/queue.h>
*
*/
@@ -15,6 +16,16 @@ struct list_head {
struct list_head *next, *prev;
};
+/* XXX workaround for conflicts. The list API should use its own
+ * namespace prefix, i.e. BLK_
+ */
+#ifdef LIST_HEAD_INIT
+#undef LIST_HEAD_INIT
+#endif
+#ifndef LIST_HEAD
+#undef LIST_HEAD
+#endif
+
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \