]> wimlib.net Git - wimlib/blobdiff - src/list.h
Get rid of static variables in mount.c
[wimlib] / src / list.h
index c34706fb2b138fb61b85ca50bb91d23e51ef8ea0..7c0a74430b1a875041f7a8f3a9833e996f3e81e0 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
 
@@ -34,14 +39,6 @@ struct hlist_node {
        struct hlist_node *next, **pprev;
 };
 
-struct stream_list_head {
-       struct list_head list;
-       enum {
-               STREAM_TYPE_NORMAL = 0,
-               STREAM_TYPE_ADS,
-       } type;
-};
-
 /*
  * Simple doubly linked list implementation.
  *
@@ -54,6 +51,10 @@ struct stream_list_head {
 
 #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)