summaryrefslogtreecommitdiff
path: root/event-internal.h
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-07-24 08:42:06 -0700
committerAzat Khuzhin <a3at.mail@gmail.com>2015-08-25 23:00:20 +0300
commit2828bdb980d0118a1076d3ddbbf47b77dd96bba2 (patch)
tree55d262e2d5f6c43cfc19db1d10359e579fd3b405 /event-internal.h
parentfd36647af1f0337add3031c1a7f95354a4bb2828 (diff)
downloadlibevent-2828bdb980d0118a1076d3ddbbf47b77dd96bba2.tar.gz
Always define missing TAILQ functions from sys/queue.h
On both Android and Ubuntu machines, TAILQ_END is not defined. This header also does not seem to be part of standard BSD sys/queue.h Fix this by always defining missing TAILQ_ macros rather than conditioning on a particular macro. Fixes #267
Diffstat (limited to 'event-internal.h')
-rw-r--r--event-internal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/event-internal.h b/event-internal.h
index 3bc79c72..bf164cd5 100644
--- a/event-internal.h
+++ b/event-internal.h
@@ -368,7 +368,6 @@ struct event_config {
};
/* Internal use only: Functions that might be missing from <sys/queue.h> */
-#if defined(EVENT__HAVE_SYS_QUEUE_H) && !defined(EVENT__HAVE_TAILQFOREACH)
#ifndef TAILQ_FIRST
#define TAILQ_FIRST(head) ((head)->tqh_first)
#endif
@@ -394,7 +393,6 @@ struct event_config {
(listelm)->field.tqe_prev = &(elm)->field.tqe_next; \
} while (0)
#endif
-#endif /* TAILQ_FOREACH */
#define N_ACTIVE_CALLBACKS(base) \
((base)->event_count_active)