summaryrefslogtreecommitdiff
path: root/event-internal.h
diff options
context:
space:
mode:
authorJiri Luznicky <jiri.luznicky@ubnt.com>2018-05-23 15:39:13 +0200
committerAzat Khuzhin <a3at.mail@gmail.com>2018-10-20 03:05:53 +0300
commit95918754d2ba7e6bffe0fc74bebed60bd917c10c (patch)
tree30fa489ee5e853eeabefb6e82e725051b12a3e7e /event-internal.h
parent4c61a04cd5207f2140b65f955559aa4ffc848e9c (diff)
downloadlibevent-95918754d2ba7e6bffe0fc74bebed60bd917c10c.tar.gz
Fix missing LIST_HEAD
Despite the presence of 'sys/queue.h' in some stdlib implementations (i.e. uclibc) 'LIST_HEAD' macro can be missing. This fix defines this macro in the same manner as was done previously for 'TAILQ_'. Fixes: #539 Closes: #639 (cherry-picked) Backport: 2.1.9
Diffstat (limited to 'event-internal.h')
-rw-r--r--event-internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h
index 03eb2a87..92941b71 100644
--- a/event-internal.h
+++ b/event-internal.h
@@ -368,6 +368,10 @@ struct event_config {
};
/* Internal use only: Functions that might be missing from <sys/queue.h> */
+#ifndef LIST_END
+#define LIST_END(head) NULL
+#endif
+
#ifndef TAILQ_FIRST
#define TAILQ_FIRST(head) ((head)->tqh_first)
#endif