From b555388dac71696c6a1028805094e16b5e5b2b82 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 12 Oct 2012 17:05:06 -0400 Subject: Add a copy of OpenBSD's sys/queue.h as tor_queue.h There are as many divergent implementations of sys/queue.h as there are operating systems shipping it, it would seem. They have some code in common, but have drifted apart, and have added other stuff named differently. So I'm taking a relatively sane one, and hoping for the best. I'm taking OpenBSD's in particular because of the lack of external dependencies, the presence of a CIRCLEQ (we could use one of those in places), and the liberal licensing terms. I'm naming the file tor_queue.h, since historically we've run into trouble having headers with the same names as system headers (log.h, for example.) --- src/ext/README | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ext/README') diff --git a/src/ext/README b/src/ext/README index 2c303c106..7aeaba515 100644 --- a/src/ext/README +++ b/src/ext/README @@ -29,3 +29,11 @@ tinytest_macros.h A unit testing framework. https://github.com/nmathewson/tinytest +tor_queue.h + + A copy of sys/queue.h from OpenBSD. We keep our own copy rather + than using sys/queue.h, since some platforms don't have a + sys/queue.h, and the ones that do have diverged in incompatible + ways. (CIRCLEQ or no CIRCLEQ? SIMPLQ or STAILQ?) + + -- cgit v1.2.3