]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add an SLIST_ENTRY definition back on non-win32
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Nov 2012 23:38:21 +0000 (19:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 4 Nov 2012 00:18:43 +0000 (20:18 -0400)
Otherwise we break openbsd headers.

Fixes bug 7293; bug not on any released Tor.

src/ext/tor_queue.h

index 98d6b9885866f4288a6a7db0c29eca7e8564cd07..595e4a34236f32fdee34d96278d260fb82cdbbd6 100644 (file)
@@ -105,6 +105,9 @@ struct name {                                                               \
 struct {                                                               \
        struct type *sle_next;  /* next element */                      \
 }
+#ifndef _WIN32
+#define SLIST_ENTRY(type) TOR_SLIST_ENTRY(type)
+#endif
  
 /*
  * Singly-linked List access methods.