X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flist.h;h=e21f6d17c33dc98f55722cde32e0697e4793ee56;hp=71ba09f77d04c2ff1141b3219ac39f0d18382010;hb=35fe5c7c2f2e5054abd93a7b755c2c670ee476da;hpb=038eaccece575d04de8d647bb93773b7f3e38ce4 diff --git a/src/list.h b/src/list.h index 71ba09f7..e21f6d17 100644 --- a/src/list.h +++ b/src/list.h @@ -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 @@ -61,6 +66,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)