diff --git a/.gitignore b/.gitignore index fae18eedbc..d1f2496e6a 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,7 @@ libevent_openssl.pc /ltmain.sh /missing /stamp-h1 +/stamp-h2 /include/event2/event-config.h /evconfig-private.h diff --git a/buffer.c b/buffer.c index 2482572e70..bef226d6c8 100644 --- a/buffer.c +++ b/buffer.c @@ -85,7 +85,6 @@ #include "event2/bufferevent_compat.h" #include "event2/bufferevent_struct.h" #include "event2/thread.h" -#include "event2/event-config.h" #include "log-internal.h" #include "mm-internal.h" #include "util-internal.h" diff --git a/buffer_iocp.c b/buffer_iocp.c index 67c89c2a27..54289879bf 100644 --- a/buffer_iocp.c +++ b/buffer_iocp.c @@ -30,12 +30,13 @@ This module implements overlapped read and write functions for evbuffer objects on Windows. */ +#include "event2/event-config.h" +#include "evconfig-private.h" #include "event2/buffer.h" #include "event2/buffer_compat.h" #include "event2/util.h" #include "event2/thread.h" -#include "event2/event-config.h" #include "util-internal.h" #include "evthread-internal.h" #include "evbuffer-internal.h" diff --git a/bufferevent-internal.h b/bufferevent-internal.h index 9d84e739e7..8c45fe9cae 100644 --- a/bufferevent-internal.h +++ b/bufferevent-internal.h @@ -31,6 +31,7 @@ extern "C" { #endif #include "event2/event-config.h" +#include "evconfig-private.h" #include "event2/util.h" #include "defer-internal.h" #include "evthread-internal.h" diff --git a/bufferevent.c b/bufferevent.c index 4c9e38fa1a..876a83f4b8 100644 --- a/bufferevent.c +++ b/bufferevent.c @@ -25,9 +25,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #include "event2/event-config.h" +#include "evconfig-private.h" + +#include #ifdef _EVENT_HAVE_SYS_TIME_H #include diff --git a/bufferevent_async.c b/bufferevent_async.c index b7284fda6c..c00ade8949 100644 --- a/bufferevent_async.c +++ b/bufferevent_async.c @@ -27,6 +27,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef _EVENT_HAVE_SYS_TIME_H #include diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index 3d9a77012f..4c9047e51c 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -24,9 +24,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #include "event2/event-config.h" +#include "evconfig-private.h" + +#include #ifdef _EVENT_HAVE_SYS_TIME_H #include diff --git a/bufferevent_pair.c b/bufferevent_pair.c index 1e20f78b94..bc1039b93b 100644 --- a/bufferevent_pair.c +++ b/bufferevent_pair.c @@ -23,6 +23,8 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "event2/event-config.h" +#include "evconfig-private.h" #include @@ -30,8 +32,6 @@ #include #endif -#include "event2/event-config.h" - #include "event2/util.h" #include "event2/buffer.h" #include "event2/bufferevent.h" diff --git a/bufferevent_sock.c b/bufferevent_sock.c index 1d76ea14b0..7502736cae 100644 --- a/bufferevent_sock.c +++ b/bufferevent_sock.c @@ -26,9 +26,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #include "event2/event-config.h" +#include "evconfig-private.h" + +#include #ifdef _EVENT_HAVE_SYS_TIME_H #include diff --git a/defer-internal.h b/defer-internal.h index 8bfa848898..1892c556ea 100644 --- a/defer-internal.h +++ b/defer-internal.h @@ -31,6 +31,8 @@ extern "C" { #endif #include "event2/event-config.h" +#include "evconfig-private.h" + #include struct deferred_cb; diff --git a/devpoll.c b/devpoll.c index 55f89d2822..2a6a0aa2b6 100644 --- a/devpoll.c +++ b/devpoll.c @@ -25,6 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #include #include diff --git a/epoll.c b/epoll.c index 0ea2349c7d..7253358bf8 100644 --- a/epoll.c +++ b/epoll.c @@ -25,6 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #include #include diff --git a/evbuffer-internal.h b/evbuffer-internal.h index 7fc8b9147a..31495a967e 100644 --- a/evbuffer-internal.h +++ b/evbuffer-internal.h @@ -32,6 +32,7 @@ extern "C" { #endif #include "event2/event-config.h" +#include "evconfig-private.h" #include "event2/util.h" #include "util-internal.h" #include "defer-internal.h" diff --git a/evdns.c b/evdns.c index a1636a14e1..75e6b99759 100644 --- a/evdns.c +++ b/evdns.c @@ -34,8 +34,10 @@ * Version: 0.1b */ -#include #include "event2/event-config.h" +#include "evconfig-private.h" + +#include #ifndef _FORTIFY_SOURCE #define _FORTIFY_SOURCE 3 diff --git a/event-internal.h b/event-internal.h index e3da33da72..1171bd9e72 100644 --- a/event-internal.h +++ b/event-internal.h @@ -32,6 +32,8 @@ extern "C" { #endif #include "event2/event-config.h" +#include "evconfig-private.h" + #include #include "event2/event_struct.h" #include "minheap-internal.h" diff --git a/event.c b/event.c index fedb9c73cf..fa8c722d8a 100644 --- a/event.c +++ b/event.c @@ -25,6 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef WIN32 #include diff --git a/event_tagging.c b/event_tagging.c index aaded70a36..f3ba1d2eac 100644 --- a/event_tagging.c +++ b/event_tagging.c @@ -26,6 +26,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef _EVENT_HAVE_SYS_TYPES_H #include diff --git a/evmap.c b/evmap.c index 3bcad1172c..77a5377231 100644 --- a/evmap.c +++ b/evmap.c @@ -24,6 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef WIN32 #include diff --git a/evport.c b/evport.c index 4301a39c7f..082e20ab2c 100644 --- a/evport.c +++ b/evport.c @@ -51,6 +51,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #include #include diff --git a/evrpc.c b/evrpc.c index 9d69299490..22dd57acdc 100644 --- a/evrpc.c +++ b/evrpc.c @@ -25,6 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef WIN32 #define WIN32_LEAN_AND_MEAN diff --git a/evthread-internal.h b/evthread-internal.h index 9317fdf1ba..847006ed1c 100644 --- a/evthread-internal.h +++ b/evthread-internal.h @@ -30,8 +30,10 @@ extern "C" { #endif -#include "event2/thread.h" #include "event2/event-config.h" +#include "evconfig-private.h" + +#include "event2/thread.h" #include "util-internal.h" struct event_base; diff --git a/evthread.c b/evthread.c index 35f14b2b2e..c96c6fd911 100644 --- a/evthread.c +++ b/evthread.c @@ -25,6 +25,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifndef _EVENT_DISABLE_THREAD_SUPPORT diff --git a/evthread_pthread.c b/evthread_pthread.c index 0eb363e90c..b806922a9c 100644 --- a/evthread_pthread.c +++ b/evthread_pthread.c @@ -24,11 +24,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" -/* With glibc we need to define this to get PTHREAD_MUTEX_RECURSIVE. - * _GNU_SOURCE, now from event-private +/* With glibc we need to define _GNU_SOURCE to get PTHREAD_MUTEX_RECURSIVE. + * This comes from evconfig-private.h */ -#include "evconfig-private.h" #include struct event_base; diff --git a/evthread_win32.c b/evthread_win32.c index bd72be15e5..73e545bfa0 100644 --- a/evthread_win32.c +++ b/evthread_win32.c @@ -24,6 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef WIN32 #include diff --git a/evutil_rand.c b/evutil_rand.c index 07ad2ea67d..85cd3e9ceb 100644 --- a/evutil_rand.c +++ b/evutil_rand.c @@ -33,6 +33,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #include diff --git a/http.c b/http.c index f8de3b37f8..29ea8e9935 100644 --- a/http.c +++ b/http.c @@ -26,6 +26,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef _EVENT_HAVE_SYS_PARAM_H #include diff --git a/ipv6-internal.h b/ipv6-internal.h index 7d6fb7361b..d5d1d3a3f9 100644 --- a/ipv6-internal.h +++ b/ipv6-internal.h @@ -30,11 +30,13 @@ #ifndef _EVENT_IPV6_INTERNAL_H #define _EVENT_IPV6_INTERNAL_H +#include "event2/event-config.h" +#include "evconfig-private.h" + #include #ifdef _EVENT_HAVE_SYS_SOCKET_H #include #endif -#include "event2/event-config.h" #include "event2/util.h" #ifdef __cplusplus diff --git a/kqueue.c b/kqueue.c index 12d4c19827..0db64abb74 100644 --- a/kqueue.c +++ b/kqueue.c @@ -27,7 +27,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" - #include "event-private.h" #include diff --git a/listener.c b/listener.c index d0911bdb8d..0f3cecf8ac 100644 --- a/listener.c +++ b/listener.c @@ -24,9 +24,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #include "event2/event-config.h" +#include "evconfig-private.h" + +#include #ifdef WIN32 #include diff --git a/log.c b/log.c index f0cd4320d1..142719cc7f 100644 --- a/log.c +++ b/log.c @@ -38,6 +38,7 @@ */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef WIN32 #include diff --git a/minheap-internal.h b/minheap-internal.h index 9734a7c72d..8055e903c1 100644 --- a/minheap-internal.h +++ b/minheap-internal.h @@ -29,6 +29,7 @@ #define _MIN_HEAP_H_ #include "event2/event-config.h" +#include "evconfig-private.h" #include "event2/event.h" #include "event2/event_struct.h" #include "event2/util.h" diff --git a/poll.c b/poll.c index 63f238868e..540d3a1319 100644 --- a/poll.c +++ b/poll.c @@ -27,6 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #include #ifdef _EVENT_HAVE_SYS_TIME_H diff --git a/select.c b/select.c index 527462ca26..0ad04468bc 100644 --- a/select.c +++ b/select.c @@ -27,6 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #include #ifdef _EVENT_HAVE_SYS_TIME_H diff --git a/signal.c b/signal.c index ec27ea8842..a700c12878 100644 --- a/signal.c +++ b/signal.c @@ -27,6 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "event2/event-config.h" +#include "evconfig-private.h" #ifdef WIN32 #define WIN32_LEAN_AND_MEAN diff --git a/strlcpy-internal.h b/strlcpy-internal.h index 1968c00312..4152b7bd01 100644 --- a/strlcpy-internal.h +++ b/strlcpy-internal.h @@ -6,6 +6,7 @@ extern "C" { #endif #include "event2/event-config.h" +#include "evconfig-private.h" #ifndef _EVENT_HAVE_STRLCPY #include diff --git a/strlcpy.c b/strlcpy.c index 11053c331b..3656e9f064 100644 --- a/strlcpy.c +++ b/strlcpy.c @@ -31,9 +31,10 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ -#include - #include "event2/event-config.h" +#include "evconfig-private.h" + +#include #ifndef _EVENT_HAVE_STRLCPY #include "strlcpy-internal.h" diff --git a/util-internal.h b/util-internal.h index cb76ee4fdd..ba596fab3f 100644 --- a/util-internal.h +++ b/util-internal.h @@ -27,6 +27,8 @@ #define _EVENT_UTIL_INTERNAL_H #include "event2/event-config.h" +#include "evconfig-private.h" + #include /* For EVUTIL_ASSERT */ diff --git a/win32select.c b/win32select.c index 70e7e6e8bc..d1f121bf1d 100644 --- a/win32select.c +++ b/win32select.c @@ -25,6 +25,8 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "event2/event-config.h" +#include "evconfig-private.h" #include #include @@ -38,7 +40,6 @@ #include #include "event2/util.h" -#include "event2/event-config.h" #include "util-internal.h" #include "log-internal.h" #include "event2/event.h"