X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flist.h;h=7c0a74430b1a875041f7a8f3a9833e996f3e81e0;hb=855b1df9de488c808bc8d0d5efb02512b5cb7207;hp=ffce657076653d9e85878e933139b61ee584b2cd;hpb=e54403529815aa48dc1ea687caaecb00eb58e893;p=wimlib diff --git a/src/list.h b/src/list.h index ffce6570..7c0a7443 100644 --- a/src/list.h +++ b/src/list.h @@ -39,21 +39,6 @@ struct hlist_node { struct hlist_node *next, **pprev; }; -/* - * Structure used to create a linked list of streams that share the same lookup - * table entry. This structure may be embedded in either a dentry (for the - * un-named data stream) or an ads_entry (for an alternate data stream). The - * @type field indicates which of these structures the stream_list_head is - * embedded in. - */ -struct stream_list_head { - struct list_head list; - enum { - STREAM_TYPE_NORMAL = 0, - STREAM_TYPE_ADS, - } type; -}; - /* * Simple doubly linked list implementation. * @@ -66,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)