summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Lentz <arjen@openquery.com>2009-10-31 15:29:16 +1000
committerArjen Lentz <arjen@openquery.com>2009-10-31 15:29:16 +1000
commit5cb21523baa927211dacb98fe673e5bca6d43554 (patch)
tree68e21af7185d51e67ca9b6b4b09bb1ec7aeea5aa
parentb40dc1ea7def276fc4bc5fe204d61347cedc6e80 (diff)
downloadmariadb-git-5cb21523baa927211dacb98fe673e5bca6d43554.tar.gz
libevent fixup required for Debian 4 (Etch)
Also missing copyright for copied macros. Fix by Antony Curtis.
-rw-r--r--extra/libevent/event-internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/libevent/event-internal.h b/extra/libevent/event-internal.h
index 19b7a547a84..9dd0c4d7632 100644
--- a/extra/libevent/event-internal.h
+++ b/extra/libevent/event-internal.h
@@ -70,6 +70,11 @@ struct event_base {
/* Internal use only: Functions that might be missing from <sys/queue.h> */
#ifndef HAVE_TAILQFOREACH
+/* These following macros are copied from BSD sys/queue.h
+ Copyright (c) 1991, 1993, The Regents of the University of California.
+ All rights reserved.
+*/
+#define TAILQ_EMPTY(head) ((head)->tqh_first == NULL)
#define TAILQ_FIRST(head) ((head)->tqh_first)
#define TAILQ_END(head) NULL
#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)