mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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
This commit is contained in:
parent
4c61a04cd5
commit
95918754d2
1
buffer.c
1
buffer.c
@ -95,6 +95,7 @@
|
||||
#include "evthread-internal.h"
|
||||
#include "evbuffer-internal.h"
|
||||
#include "bufferevent-internal.h"
|
||||
#include "event-internal.h"
|
||||
|
||||
/* some systems do not have MAP_FAILED */
|
||||
#ifndef MAP_FAILED
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user