summaryrefslogtreecommitdiff
path: root/extra
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
commit0673379006a7352d611ae6c92b0c8799600328a1 (patch)
tree68e21af7185d51e67ca9b6b4b09bb1ec7aeea5aa /extra
parent182aa542bccc15c60ff0f897303f4b54910a3b44 (diff)
downloadmariadb-git-0673379006a7352d611ae6c92b0c8799600328a1.tar.gz
libevent fixup required for Debian 4 (Etch)
Also missing copyright for copied macros. Fix by Antony Curtis.
Diffstat (limited to 'extra')
-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)