]> wimlib.net Git - wimlib/blobdiff - src/list.h
Make WIM mounting work on FreeBSD
[wimlib] / src / list.h
index 71ba09f77d04c2ff1141b3219ac39f0d18382010..e21f6d17c33dc98f55722cde32e0697e4793ee56 100644 (file)
@@ -1,3 +1,8 @@
+
+/*
+ * This file is based on include/linux/list.h in the Linux kernel source code.
+ */
+
 #ifndef _LINUX_LIST_H
 #define _LINUX_LIST_H
 
 #ifndef _LINUX_LIST_H
 #define _LINUX_LIST_H
 
@@ -61,6 +66,10 @@ struct stream_list_head {
 
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
 
 
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
 
+#ifdef LIST_HEAD /* BSD sys/queue.h defines this... */
+#undef LIST_HEAD
+#endif
+
 #define LIST_HEAD(name) \
        struct list_head name = LIST_HEAD_INIT(name)
 
 #define LIST_HEAD(name) \
        struct list_head name = LIST_HEAD_INIT(name)