]> granicus.if.org Git - libevent/commitdiff
Replace all use of config.h with event-config.h.
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Jan 2009 22:30:46 +0000 (22:30 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Jan 2009 22:30:46 +0000 (22:30 +0000)
svn:r1064

43 files changed:
buffer.c
bufferevent-internal.h
bufferevent.c
devpoll.c
epoll.c
evbuffer-internal.h
evdns.c
event-internal.h
event.c
event_tagging.c
evmap.c
evport.c
evrpc.c
evsignal-internal.h
evthread-internal.h
evthread_pthread.c
evthread_win32.c
evutil.c
http.c
kqueue.c
log.c
poll.c
sample/event-test.c
sample/signal-test.c
sample/time-test.c
select.c
signal.c
strlcpy-internal.h
strlcpy.c
test/bench.c
test/bench_cascade.c
test/bench_http.c
test/regress.c
test/regress_dns.c
test/regress_http.c
test/regress_pthread.c
test/regress_rpc.c
test/regress_util.c
test/regress_zlib.c
test/test-eof.c
test/test-init.c
test/test-time.c
test/test-weof.c

index 518d6de11b011c31f357b563908bff37ab71eb12..9e721a72d960b1677b0699218e4fd317e70f8217 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -26,7 +26,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
 #include <windows.h>
 #endif
 
-#ifdef HAVE_VASPRINTF
+#ifdef _EVENT_HAVE_VASPRINTF
 /* If we have vasprintf, we need to define this before we include stdio.h. */
 #define _GNU_SOURCE
 #endif
 
 #include <sys/types.h>
 
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 
-#ifdef HAVE_SYS_UIO_H
+#ifdef _EVENT_HAVE_SYS_UIO_H
 #include <sys/uio.h>
 #endif
 
-#ifdef HAVE_SYS_IOCTL_H
+#ifdef _EVENT_HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
 #endif
 
-#ifdef HAVE_SYS_MMAN_H
+#ifdef _EVENT_HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif
 
-#ifdef HAVE_SYS_SENDFILE_H
+#ifdef _EVENT_HAVE_SYS_SENDFILE_H
 #include <sys/sendfile.h>
 #endif
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef HAVE_STDARG_H
+#ifdef _EVENT_HAVE_STDARG_H
 #include <stdarg.h>
 #endif
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 
 #include "event2/event.h"
 #include "event2/buffer.h"
 #include "event2/buffer_compat.h"
-#include "config.h"
+#include "event-config.h"
 #include "log-internal.h"
 #include "mm-internal.h"
 #include "util-internal.h"
 #endif
 
 /* send file support */
-#if defined(HAVE_SYS_SENDFILE_H) && defined(HAVE_SENDFILE) && defined(__linux__)
+#if defined(_EVENT_HAVE_SYS_SENDFILE_H) && defined(_EVENT_HAVE_SENDFILE) && defined(__linux__)
 #define USE_SENDFILE           1
 #define SENDFILE_IS_LINUX      1
-#elif defined(HAVE_SENDFILE) && (defined(__FreeBSD__) || defined(__APPLE__))
+#elif defined(_EVENT_HAVE_SENDFILE) && (defined(__FreeBSD__) || defined(__APPLE__))
 #define USE_SENDFILE           1
 #define SENDFILE_IS_FREEBSD    1
 #endif
 #ifdef USE_SENDFILE
 static int use_sendfile = 1;
 #endif
-#ifdef HAVE_MMAP
+#ifdef _EVENT_HAVE_MMAP
 static int use_mmap = 1;
 #endif
 
@@ -154,7 +154,7 @@ evbuffer_chain_free(struct evbuffer_chain *chain)
                        if (info->cleanupfn)
                                (*info->cleanupfn)(info->extra);
                }
-#ifdef HAVE_MMAP
+#ifdef _EVENT_HAVE_MMAP
                if (chain->flags & EVBUFFER_MMAP) {
                        struct evbuffer_chain_fd *info =
                            EVBUFFER_CHAIN_EXTRA(struct evbuffer_chain_fd,
@@ -1034,13 +1034,13 @@ _evbuffer_expand_fast(struct evbuffer *buf, size_t datlen)
  * Reads data from a file descriptor into a buffer.
  */
 
-#if defined(HAVE_SYS_UIO_H)
+#if defined(_EVENT_HAVE_SYS_UIO_H)
 #define USE_IOVEC_IMPL
 #endif
 
 #ifdef USE_IOVEC_IMPL
 
-#ifdef HAVE_SYS_UIO_H
+#ifdef _EVENT_HAVE_SYS_UIO_H
 /* number of iovec we use for writev, fragmentation is going to determine
  * how much we end up writing */
 #define NUM_IOVEC 128
@@ -1428,7 +1428,7 @@ evbuffer_add_file(struct evbuffer *outbuf, int fd,
 {
        size_t old_len = outbuf->total_len;
 
-#if defined(USE_SENDFILE) || defined(HAVE_MMAP)
+#if defined(USE_SENDFILE) || defined(_EVENT_HAVE_MMAP)
        struct evbuffer_chain *chain;
        struct evbuffer_chain_fd *info;
 #endif
@@ -1453,7 +1453,7 @@ evbuffer_add_file(struct evbuffer *outbuf, int fd,
                evbuffer_chain_insert(outbuf, chain);
        } else
 #endif
-#if defined(HAVE_MMAP)
+#if defined(_EVENT_HAVE_MMAP)
        if (use_mmap) {
                void *mapped = mmap(NULL, length + offset, PROT_READ,
 #ifdef MAP_NOCACHE
index b8803eaa78085799590a35129fadb385b5680afa..9f9c3af10280a0bb88969de27834184e02da8af0 100644 (file)
@@ -31,7 +31,7 @@
 extern "C" {
 #endif
 
-#include "config.h"
+#include "event-config.h"
 #include "evutil.h"
 
 struct bufferevent_filter {
index 56f5d110d5fbeae43d39dc481abcfdad2312fdc6..abdca342ffba44492f19791b6623be8cb8b1c9c0 100644 (file)
 #include <sys/types.h>
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
@@ -40,7 +40,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef HAVE_STDARG_H
+#ifdef _EVENT_HAVE_STDARG_H
 #include <stdarg.h>
 #endif
 
index a31745ed971918eb5e48348017f37442e1880bff..355d6ea0b9b5bd5b3c4377db9c9a2e947a8c8763 100644 (file)
--- a/devpoll.c
+++ b/devpoll.c
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
 #include <sys/resource.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
diff --git a/epoll.c b/epoll.c
index b2369c5870505d6726c82b1eba82addb4671aa4e..a4b11b404b94c701cfae5746681398e76e5a0907 100644 (file)
--- a/epoll.c
+++ b/epoll.c
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/resource.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
@@ -44,7 +44,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
-#ifdef HAVE_FCNTL_H
+#ifdef _EVENT_HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
 
@@ -77,7 +77,7 @@ const struct eventop epollops = {
        0
 };
 
-#ifdef HAVE_SETFD
+#ifdef _EVENT_HAVE_SETFD
 #define FD_CLOSEONEXEC(x) do { \
         if (fcntl(x, F_SETFD, 1) == -1) \
                 event_warn("fcntl(%d, F_SETFD)", x); \
index 7d4eb2d7c6b3185bdfcf87cb669241d67e8b7b58..4b809b1a1ec4c75a48c49508bf4ed20eaf0f1d4e 100644 (file)
@@ -31,7 +31,7 @@
 extern "C" {
 #endif
 
-#include "config.h"
+#include "event-config.h"
 #include "evutil.h"
 
 #include <sys/queue.h>
diff --git a/evdns.c b/evdns.c
index 0dec001c08a0568fbb37e3f09f1007a0f1c48bb0..42b26c60c932ebd8d7514c20b6a11629986f1afa 100644 (file)
--- a/evdns.c
+++ b/evdns.c
 
 #include <sys/types.h>
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef DNS_USE_FTIME_FOR_ID
 #include <sys/timeb.h>
 #endif
 
-#ifndef DNS_USE_CPU_CLOCK_FOR_ID
-#ifndef DNS_USE_GETTIMEOFDAY_FOR_ID
+#ifndef _EVENT_DNS_USE_CPU_CLOCK_FOR_ID
+#ifndef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID
 #ifndef DNS_USE_OPENSSL_FOR_ID
 #ifndef DNS_USE_FTIME_FOR_ID
 #error Must configure at least one id generation method.
 /* for strtok_r */
 #define _REENTRANT
 
-#ifdef DNS_USE_CPU_CLOCK_FOR_ID
+#ifdef _EVENT_DNS_USE_CPU_CLOCK_FOR_ID
 #ifdef DNS_USE_OPENSSL_FOR_ID
 #error Multiple id options selected
 #endif
-#ifdef DNS_USE_GETTIMEOFDAY_FOR_ID
+#ifdef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID
 #error Multiple id options selected
 #endif
 #include <time.h>
 #endif
 
 #ifdef DNS_USE_OPENSSL_FOR_ID
-#ifdef DNS_USE_GETTIMEOFDAY_FOR_ID
+#ifdef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID
 #error Multiple id options selected
 #endif
 #include <openssl/rand.h>
 
 #include <string.h>
 #include <fcntl.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
-#ifdef HAVE_STDINT_H
+#ifdef _EVENT_HAVE_STDINT_H
 #include <stdint.h>
 #endif
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include <assert.h>
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #include <limits.h>
 #include <arpa/inet.h>
 #endif
 
-#ifdef HAVE_NETINET_IN6_H
+#ifdef _EVENT_HAVE_NETINET_IN6_H
 #include <netinet/in6.h>
 #endif
 
@@ -1079,7 +1079,7 @@ static u16
 default_transaction_id_fn(void)
 {
        u16 trans_id;
-#ifdef DNS_USE_CPU_CLOCK_FOR_ID
+#ifdef _EVENT_DNS_USE_CPU_CLOCK_FOR_ID
        struct timespec ts;
        static int clkid = -1;
        if (clkid == -1) {
@@ -1100,7 +1100,7 @@ default_transaction_id_fn(void)
        trans_id = tb.millitm & 0xffff;
 #endif
 
-#ifdef DNS_USE_GETTIMEOFDAY_FOR_ID
+#ifdef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID
        struct timeval tv;
        evutil_gettimeofday(&tv, NULL);
        trans_id = tv.tv_usec & 0xffff;
@@ -2824,7 +2824,7 @@ evdns_resolv_set_defaults(struct evdns_base *base, int flags) {
        if (flags & DNS_OPTION_NAMESERVERS) evdns_base_nameserver_ip_add(base,"127.0.0.1");
 }
 
-#ifndef HAVE_STRTOK_R
+#ifndef _EVENT_HAVE_STRTOK_R
 static char *
 strtok_r(char *s, const char *delim, char **state) {
        char *cp, *start;
index 8ee32f4be03081b6798d19365e6764c9f833d103..3dc8267ed09a908eae5477246d89d090044cffca 100644 (file)
@@ -31,7 +31,7 @@
 extern "C" {
 #endif
 
-#include "config.h"
+#include "event-config.h"
 #include "minheap-internal.h"
 #include "evsignal-internal.h"
 #include "mm-internal.h"
@@ -145,7 +145,7 @@ struct event_config {
 };
 
 /* Internal use only: Functions that might be missing from <sys/queue.h> */
-#ifndef HAVE_TAILQFOREACH
+#ifndef _EVENT_HAVE_TAILQFOREACH
 #define        TAILQ_FIRST(head)               ((head)->tqh_first)
 #define        TAILQ_END(head)                 NULL
 #define        TAILQ_NEXT(elm, field)          ((elm)->field.tqe_next)
diff --git a/event.c b/event.c
index 99263f0a47d3f7b9659cd00186a5709daf81678c..e27305aad8f0390288951fec28002f55b919a46d 100644 (file)
--- a/event.c
+++ b/event.c
@@ -25,7 +25,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
 #endif
 #include <sys/types.h>
 #ifndef WIN32
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
 #endif
 #endif
 #include <sys/queue.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #include <stdio.h>
 #include <stdlib.h>
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_SYS_EVENTFD_H
+#ifdef _EVENT_HAVE_SYS_EVENTFD_H
 #include <sys/eventfd.h>
 #endif
 #include <ctype.h>
 #include "log-internal.h"
 #include "evmap-internal.h"
 
-#ifdef HAVE_EVENT_PORTS
+#ifdef _EVENT_HAVE_EVENT_PORTS
 extern const struct eventop evportops;
 #endif
-#ifdef HAVE_SELECT
+#ifdef _EVENT_HAVE_SELECT
 extern const struct eventop selectops;
 #endif
-#ifdef HAVE_POLL
+#ifdef _EVENT_HAVE_POLL
 extern const struct eventop pollops;
 #endif
-#ifdef HAVE_EPOLL
+#ifdef _EVENT_HAVE_EPOLL
 extern const struct eventop epollops;
 #endif
-#ifdef HAVE_WORKING_KQUEUE
+#ifdef _EVENT_HAVE_WORKING_KQUEUE
 extern const struct eventop kqops;
 #endif
-#ifdef HAVE_DEVPOLL
+#ifdef _EVENT_HAVE_DEVPOLL
 extern const struct eventop devpollops;
 #endif
 #ifdef WIN32
@@ -95,22 +95,22 @@ extern const struct eventop win32ops;
 
 /* In order of preference */
 static const struct eventop *eventops[] = {
-#ifdef HAVE_EVENT_PORTS
+#ifdef _EVENT_HAVE_EVENT_PORTS
        &evportops,
 #endif
-#ifdef HAVE_WORKING_KQUEUE
+#ifdef _EVENT_HAVE_WORKING_KQUEUE
        &kqops,
 #endif
-#ifdef HAVE_EPOLL
+#ifdef _EVENT_HAVE_EPOLL
        &epollops,
 #endif
-#ifdef HAVE_DEVPOLL
+#ifdef _EVENT_HAVE_DEVPOLL
        &devpollops,
 #endif
-#ifdef HAVE_POLL
+#ifdef _EVENT_HAVE_POLL
        &pollops,
 #endif
-#ifdef HAVE_SELECT
+#ifdef _EVENT_HAVE_SELECT
        &selectops,
 #endif
 #ifdef WIN32
@@ -152,7 +152,7 @@ static int evthread_notify_base(struct event_base *base);
 static void
 detect_monotonic(void)
 {
-#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
+#if defined(_EVENT_HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
        struct timespec ts;
 
        if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
@@ -168,7 +168,7 @@ gettime(struct event_base *base, struct timeval *tp)
                return (0);
        }
 
-#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
+#if defined(_EVENT_HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
        if (use_monotonic) {
                struct timespec ts;
 
@@ -1061,7 +1061,7 @@ evthread_notify_base_default(struct event_base *base)
        return (r < 0) ? -1 : 0;
 }
 
-#if defined(HAVE_EVENTFD) && defined(HAVE_SYS_EVENTFD_H)
+#if defined(_EVENT_HAVE_EVENTFD) && defined(_EVENT_HAVE_SYS_EVENTFD_H)
 static int
 evthread_notify_base_eventfd(struct event_base *base)
 {
@@ -1445,7 +1445,7 @@ event_queue_insert(struct event_base *base, struct event *ev, int queue)
 const char *
 event_get_version(void)
 {
-       return (VERSION);
+       return (_EVENT_VERSION);
 }
 
 /*
@@ -1535,13 +1535,13 @@ void
 evthread_set_locking_callback(struct event_base *base,
     void (*locking_fn)(int mode, void *lock))
 {
-#ifdef DISABLE_THREAD_SUPPORT
+#ifdef _EVENT_DISABLE_THREAD_SUPPORT
        event_errx(1, "%s: not compiled with thread support", __func__);
 #endif
        base->th_lock = locking_fn;
 }
 
-#if defined(HAVE_EVENTFD) && defined(HAVE_SYS_EVENTFD_H)
+#if defined(_EVENT_HAVE_EVENTFD) && defined(_EVENT_HAVE_SYS_EVENTFD_H)
 static void
 evthread_notify_drain_eventfd(int fd, short what, void *arg)
 {
@@ -1568,7 +1568,7 @@ void
 evthread_set_id_callback(struct event_base *base,
     unsigned long (*id_fn)(void))
 {
-#ifdef DISABLE_THREAD_SUPPORT
+#ifdef _EVENT_DISABLE_THREAD_SUPPORT
        event_errx(1, "%s: not compiled with thread support", __func__);
 #endif
 #ifdef WIN32
@@ -1598,7 +1598,7 @@ evthread_make_base_notifiable(struct event_base *base)
        if (base->th_notify_fd[0] >= 0)
                return 0;
 
-#if defined(HAVE_EVENTFD) && defined(HAVE_SYS_EVENTFD_H)
+#if defined(_EVENT_HAVE_EVENTFD) && defined(_EVENT_HAVE_SYS_EVENTFD_H)
        base->th_notify_fd[0] = eventfd(0, 0);
        if (base->th_notify_fd[0] >= 0) {
                notify = evthread_notify_base_eventfd;
@@ -1648,7 +1648,7 @@ void
 evthread_set_lock_create_callbacks(struct event_base *base,
     void *(*alloc_fn)(void), void (*free_fn)(void *))
 {
-#ifdef DISABLE_THREAD_SUPPORT
+#ifdef _EVENT_DISABLE_THREAD_SUPPORT
        event_errx(1, "%s: not compiled with thread support", __func__);
 #endif
        base->th_alloc = alloc_fn;
index a74c354499d0cdb8c9e975989b08c6f89492886a..5d0efaf6c52669165a1035c707ba92667cefd200 100644 (file)
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
-#ifdef HAVE_SYS_TYPES_H
+#ifdef _EVENT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
-#ifdef HAVE_SYS_PARAM_H
+#ifdef _EVENT_HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
 
@@ -46,7 +46,7 @@
 #endif
 
 #include <sys/queue.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 
@@ -57,7 +57,7 @@
 #ifndef WIN32
 #include <syslog.h>
 #endif
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 
diff --git a/evmap.c b/evmap.c
index ee04639a6742cc023094befc75d21fa85c237139..22e26a44808c2920c4e4251e413d40aec30f7319 100644 (file)
--- a/evmap.c
+++ b/evmap.c
@@ -25,7 +25,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
@@ -34,7 +34,7 @@
 #undef WIN32_LEAN_AND_MEAN
 #endif
 #include <sys/types.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
index b349973ad69b06c36774d350f751f6e5bedf795f..79ab2380bf6bb9ea54802664c1c0c809bfb50123 100644 (file)
--- a/evport.c
+++ b/evport.c
@@ -51,7 +51,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/time.h>
diff --git a/evrpc.c b/evrpc.c
index be4cea652d002cb40c5876f55b35c4ae09b2a62a..340808fd70c21d7bd477bc7896ec0f0b319a5b8c 100644 (file)
--- a/evrpc.c
+++ b/evrpc.c
@@ -25,7 +25,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
@@ -39,7 +39,7 @@
 #ifndef WIN32
 #include <sys/socket.h>
 #endif
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
index 5e380d43502aae8e740841733f056068608e3412..944558c559a890b2217056e265178ace4511fe87 100644 (file)
@@ -39,7 +39,7 @@ struct evsig_info {
        int ev_signal_added;
        volatile sig_atomic_t evsig_caught;
        sig_atomic_t evsigcaught[NSIG];
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        struct sigaction **sh_old;
 #else
        ev_sighandler_t **sh_old;
index abc0c98d3dfb64446d7fe6868f5f5d8f155fabd6..64f9928de5b513e5320fcc67c71c8691049c2143 100644 (file)
 extern "C" {
 #endif
 
-#include "config.h"
+#include "event-config.h"
 
 struct event_base;
-#ifndef DISABLE_THREAD_SUPPORT
+#ifndef _EVENT_DISABLE_THREAD_SUPPORT
 #define EVTHREAD_USE_LOCKS(base) \
        (base != NULL && (base)->th_lock != NULL)
 
@@ -56,7 +56,7 @@ struct event_base;
                        (*(base)->th_lock)(EVTHREAD_UNLOCK | mode, \
                            (base)->lock);                         \
        } while (0)
-#else /* DISABLE_THREAD_SUPPORT */
+#else /* _EVENT_DISABLE_THREAD_SUPPORT */
 #define EVTHREAD_USE_LOCKS(base)
 #define EVTHREAD_IN_THREAD(base)       1
 #define EVTHREAD_GET_ID(base)
index 72f11a720c1f412361c964461e481d3753bb409f..1fe2c67b11716c9f72b4fed15126ef3b2931f295 100644 (file)
@@ -1,5 +1,5 @@
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <pthread.h>
index cfe76fc15c6544b5ff5726e11081f195c76145cb..0c873f6f500c7ee5fa9d52f9b0b815701e806458 100644 (file)
@@ -1,5 +1,5 @@
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
index 542ba31e7f992b7b45c0fa26daea4d58756a26d7..ba809808f2c22c54c2591e4162091653b5497154 100644 (file)
--- a/evutil.c
+++ b/evutil.c
@@ -25,7 +25,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
 #endif
 
 #include <sys/types.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_FCNTL_H
+#ifdef _EVENT_HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
-#ifdef HAVE_STDLIB_H
+#ifdef _EVENT_HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
 #include <errno.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
-#ifdef HAVE_ARPA_INET_H
+#ifdef _EVENT_HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
-#ifdef HAVE_NETINET_IN_H
+#ifdef _EVENT_HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
-#ifdef HAVE_NETINET_IN6_H
+#ifdef _EVENT_HAVE_NETINET_IN6_H
 #include <netinet/in6.h>
 #endif
 
@@ -192,9 +192,9 @@ evutil_make_socket_nonblocking(evutil_socket_t fd)
 ev_int64_t
 evutil_strtoll(const char *s, char **endptr, int base)
 {
-#ifdef HAVE_STRTOLL
+#ifdef _EVENT_HAVE_STRTOLL
        return (ev_int64_t)strtoll(s, endptr, base);
-#elif SIZEOF_LONG == 8
+#elif _EVENT_SIZEOF_LONG == 8
        return (ev_int64_t)strtol(s, endptr, base);
 #elif defined(WIN32) && defined(_MSC_VER) && _MSC_VER < 1300
        /* XXXX on old versions of MS APIs, we only support base
@@ -639,7 +639,7 @@ evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int o
        if (is_ipv6) {
                struct sockaddr_in6 sin6;
                memset(&sin6, 0, sizeof(sin6));
-#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
+#ifdef _EVENT_HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
                sin6.sin6_len = sizeof(sin6);
 #endif
                sin6.sin6_family = AF_INET6;
@@ -654,7 +654,7 @@ evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int o
        } else {
                struct sockaddr_in sin;
                memset(&sin, 0, sizeof(sin));
-#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
+#ifdef _EVENT_HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
                sin.sin_len = sizeof(sin);
 #endif
                sin.sin_family = AF_INET;
diff --git a/http.c b/http.c
index 03fa95b614ef99aadea668722556b7704d6e2c3e..c8b27eae71bef05a83ce2afd16cca9b2f2c57709 100644 (file)
--- a/http.c
+++ b/http.c
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 #define _REENTRANT
 
-#ifdef HAVE_SYS_PARAM_H
+#ifdef _EVENT_HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
-#ifdef HAVE_SYS_TYPES_H
+#ifdef _EVENT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
 
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_SYS_IOCCOM_H
 #endif
 #include <signal.h>
 #include <time.h>
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_FCNTL_H
+#ifdef _EVENT_HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
 
 #define strncasecmp _strnicmp
 #endif
 
-#ifndef HAVE_GETNAMEINFO
+#ifndef _EVENT_HAVE_GETNAMEINFO
 #define NI_MAXSERV 32
 #define NI_MAXHOST 1025
 
@@ -147,7 +147,7 @@ fake_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
 
 #endif
 
-#ifndef HAVE_GETADDRINFO
+#ifndef _EVENT_HAVE_GETADDRINFO
 struct addrinfo {
        int ai_family;
        int ai_socktype;
@@ -220,7 +220,7 @@ static void evhttp_error_cb(struct bufferevent *bufev, short what, void *arg);
 static int evhttp_decode_uri_internal(const char *uri, size_t length,
     char *ret);
 
-#ifndef HAVE_STRSEP
+#ifndef _EVENT_HAVE_STRSEP
 /* strsep replacement for platforms that lack it.  Only works if
  * del is one character long. */
 static char *
@@ -2803,7 +2803,7 @@ evhttp_get_request(struct evhttp *http, evutil_socket_t fd,
 static struct addrinfo *
 addr_from_name(char *address)
 {
-#ifdef HAVE_GETADDRINFO
+#ifdef _EVENT_HAVE_GETADDRINFO
         struct addrinfo ai, *aitop;
         int ai_result;
 
@@ -2834,7 +2834,7 @@ name_from_addr(struct sockaddr *sa, socklen_t salen,
        char strport[NI_MAXSERV];
        int ni_result;
 
-#ifdef HAVE_GETNAMEINFO
+#ifdef _EVENT_HAVE_GETNAMEINFO
        ni_result = getnameinfo(sa, salen,
                ntop, sizeof(ntop), strport, sizeof(strport),
                NI_NUMERICHOST|NI_NUMERICSERV);
@@ -2911,7 +2911,7 @@ make_addrinfo(const char *address, ev_uint16_t port)
 {
         struct addrinfo *aitop = NULL;
 
-#ifdef HAVE_GETADDRINFO
+#ifdef _EVENT_HAVE_GETADDRINFO
         struct addrinfo ai;
         char strport[NI_MAXSERV];
         int ai_result;
@@ -2961,7 +2961,7 @@ bind_socket(const char *address, ev_uint16_t port, int reuse)
 
        fd = bind_socket_ai(aitop, reuse);
 
-#ifdef HAVE_GETADDRINFO
+#ifdef _EVENT_HAVE_GETADDRINFO
        freeaddrinfo(aitop);
 #else
        fake_freeaddrinfo(aitop);
@@ -2992,7 +2992,7 @@ socket_connect(evutil_socket_t fd, const char *address, unsigned short port)
        res = 0;
 
 out:
-#ifdef HAVE_GETADDRINFO
+#ifdef _EVENT_HAVE_GETADDRINFO
        freeaddrinfo(ai);
 #else
        fake_freeaddrinfo(ai);
index 8224a0913a38a3b6dfbbf278e78dace5e797a2a4..be55ced6bb2daf12d5eb08aacda2ebd01009d014 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
 #include <unistd.h>
 #include <errno.h>
 #include <assert.h>
-#ifdef HAVE_INTTYPES_H
+#ifdef _EVENT_HAVE_INTTYPES_H
 #include <inttypes.h>
 #endif
 
 /* Some platforms apparently define the udata field of struct kevent as
  * intptr_t, whereas others define it as void*.  There doesn't seem to be an
  * easy way to tell them apart via autoconf, so we need to use OS macros. */
-#if defined(HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__)
+#if defined(_EVENT_HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__)
 #define PTR_TO_UDATA(x)        ((intptr_t)(x))
 #else
 #define PTR_TO_UDATA(x)        (x)
diff --git a/log.c b/log.c
index 793ea5c2a79892e74bf3142cf3d27d3db52071e2..d157a694d45fca52a909dbe22bd14b76918e8715 100644 (file)
--- a/log.c
+++ b/log.c
@@ -38,7 +38,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
@@ -47,7 +47,7 @@
 #undef WIN32_LEAN_AND_MEAN
 #endif
 #include <sys/types.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
diff --git a/poll.c b/poll.c
index f5dd9b56befee3519e6950b063aa460e2fa9f4e9..c18afd24e957c59cd5e33bbc5fbf31a5325c01ed 100644 (file)
--- a/poll.c
+++ b/poll.c
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
index b4276aa9d5194230db6a4488521d6a06b55f1547..f86cb62e2d147464a83c3168f233c937ddc087bf 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
index cb464834c8c21eeaf5d1e65481b05f3e7a6f7545..cd1302f4096132a74ba1a7425dbc044bc98ebb25 100644 (file)
@@ -7,7 +7,7 @@
 #include <sys/types.h>
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/stat.h>
index faf0999defb3db0229cb956e4bfff9fd828c99ef..a9504ba1f95e68721134344496660b1cf0b4aa96 100644 (file)
@@ -6,7 +6,7 @@
 #include <sys/types.h>
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/stat.h>
@@ -15,7 +15,7 @@
 #include <unistd.h>
 #endif
 #include <time.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <fcntl.h>
index 76974798c3fad92caf9d7dbdf820020de2ba716d..16313248877b6c89bc3bf90902ccd1aea324e06d 100644 (file)
--- a/select.c
+++ b/select.c
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #else
 #include <sys/_time.h>
 #endif
-#ifdef HAVE_SYS_SELECT_H
+#ifdef _EVENT_HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif
 #include <sys/queue.h>
index 30c5e026f86105b0fd640619fe1dfae23e06e215..86b12c5b165ce3c64b57d89852ce74b7a3a9d0eb 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -27,7 +27,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #ifdef WIN32
 #undef WIN32_LEAN_AND_MEAN
 #endif
 #include <sys/types.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef HAVE_UNISTD_H
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #include <errno.h>
-#ifdef HAVE_FCNTL_H
+#ifdef _EVENT_HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
 #include <assert.h>
@@ -99,7 +99,7 @@ evsig_cb(evutil_socket_t fd, short what, void *arg)
                event_sock_err(1, fd, "%s: read", __func__);
 }
 
-#ifdef HAVE_SETFD
+#ifdef _EVENT_HAVE_SETFD
 #define FD_CLOSEONEXEC(x) do { \
         if (fcntl(x, F_SETFD, 1) == -1) \
                 event_warn("fcntl(%d, F_SETFD)", x); \
@@ -144,7 +144,7 @@ int
 _evsig_set_handler(struct event_base *base,
                      int evsignal, void (*handler)(int))
 {
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        struct sigaction sa;
 #else
        ev_sighandler_t sh;
@@ -181,7 +181,7 @@ _evsig_set_handler(struct event_base *base,
        }
 
        /* save previous handler and setup new handler */
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        memset(&sa, 0, sizeof(sa));
        sa.sa_handler = handler;
        sa.sa_flags |= SA_RESTART;
@@ -233,7 +233,7 @@ _evsig_restore_handler(struct event_base *base, int evsignal)
 {
        int ret = 0;
        struct evsig_info *sig = &base->sig;
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        struct sigaction *sh;
 #else
        ev_sighandler_t *sh;
@@ -242,7 +242,7 @@ _evsig_restore_handler(struct event_base *base, int evsignal)
        /* restore previous handler */
        sh = sig->sh_old[evsignal];
        sig->sh_old[evsignal] = NULL;
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        if (sigaction(evsignal, sh, NULL) == -1) {
                event_warn("sigaction");
                ret = -1;
@@ -287,7 +287,7 @@ evsig_handler(int sig)
        evsig_base->sig.evsigcaught[sig]++;
        evsig_base->sig.evsig_caught = 1;
 
-#ifndef HAVE_SIGACTION
+#ifndef _EVENT_HAVE_SIGACTION
        signal(sig, evsig_handler);
 #endif
 
index 22b5f61d45ed9215c4912adac3ddfb5a5176269a..12f09a384d765716b7e55ea6be2f2ab989cc3e0a 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif /* HAVE_CONFIG_H */
 
-#ifndef HAVE_STRLCPY
+#ifndef _EVENT_HAVE_STRLCPY
 #include <string.h>
 size_t _event_strlcpy(char *dst, const char *src, size_t siz);
 #define strlcpy _event_strlcpy
index 5d194527c8caa929af40703a004699fbf5b622f1..7fd0884ad638b95de617c1dcc953d389ba86c812 100644 (file)
--- a/strlcpy.c
+++ b/strlcpy.c
@@ -34,10 +34,10 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp
 #include <sys/types.h>
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif /* HAVE_CONFIG_H */
 
-#ifndef HAVE_STRLCPY
+#ifndef _EVENT_HAVE_STRLCPY
 #include "strlcpy-internal.h"
 
 /*
index 7719e05bc1af10c8709b41ac28ef32c607e5b611..6f1789f436a6a7fb21b1d9212e410384e99818bc 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
index 69508e1e91abdcf59762f15a77c19e308b476dc3..1a243a052f82b4b8fa8872b0bb2c870cffd5d5ae 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
index b84af27201b37a558d7e17d000421f44ec6869b3..c9577abe69ac10b4f8d75686bb95ac905f7c3af8 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
index 6fbc32ae509cdd7893dda7d34147cf986702f695..13782da613c9c594d5dd4c2a427aefd16ad2a901 100644 (file)
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
@@ -811,13 +811,13 @@ test_signal_restore(void)
 {
        struct event ev;
        struct event_base *base = event_init();
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        struct sigaction sa;
 #endif
 
        test_ok = 0;
        printf("Signal handler restore: ");
-#ifdef HAVE_SIGACTION
+#ifdef _EVENT_HAVE_SIGACTION
        sa.sa_handler = signal_cb_sa;
        sa.sa_flags = 0x0;
        sigemptyset(&sa.sa_mask);
@@ -2375,11 +2375,11 @@ main (int argc, char **argv)
 
        test_event_base_new();
 
-#if defined(HAVE_PTHREADS) && !defined(DISABLE_THREAD_SUPPORT)
+#if defined(_EVENT_HAVE_PTHREADS) && !defined(_EVENT_DISABLE_THREAD_SUPPORT)
        regress_pthread();
 #endif
 
-#if defined(HAVE_LIBZ)
+#if defined(_EVENT_HAVE_LIBZ)
        regress_zlib();
 #endif
 
index 96a47041f4209aa8525ae800d1f2b17f2f8c19f7..08acffc724dd1b79115c691b004002d091acd238 100644 (file)
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
@@ -47,7 +47,7 @@
 #include <arpa/inet.h>
 #include <unistd.h>
 #endif
-#ifdef HAVE_NETINET_IN6_H
+#ifdef _EVENT_HAVE_NETINET_IN6_H
 #include <netinet/in6.h>
 #endif
 #ifdef HAVE_NETDB_H
@@ -90,7 +90,7 @@ dns_gethostbyname_cb(int result, char type, int count, int ttl,
 
        switch (type) {
        case DNS_IPv6_AAAA: {
-#if defined(HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN)
+#if defined(_EVENT_HAVE_STRUCT_IN6_ADDR) && defined(_EVENT_HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN)
                struct in6_addr *in6_addrs = addresses;
                char buf[INET6_ADDRSTRLEN+1];
                int i;
@@ -297,7 +297,7 @@ dns_server_gethostbyname_cb(int result, char type, int count, int ttl,
                break;
        }
        case DNS_IPv6_AAAA: {
-#if defined (HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN)
+#if defined (_EVENT_HAVE_STRUCT_IN6_ADDR) && defined(_EVENT_HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN)
                struct in6_addr *in6_addrs = addresses;
                char buf[INET6_ADDRSTRLEN+1];
                if (memcmp(&in6_addrs[0].s6_addr, "abcdefghijklmnop", 16)
index 889c852ea2c10d86b66cb8065be9d8ee741497a2..2ad5befc5da3ed13fbdc580ad83f5902f46b0963 100644 (file)
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
index ea97fc7f817f75e40bd8a3a05f5d8402463abc73..72323ca83324d34f5c6054fd63ff1b14cebba71b 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
index ac4bdbc73db5d6c55e4913ad76b6df21b14711cb..649d275dd1a0f5fafe1b46c85e5618204618e223 100644 (file)
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef HAVE_SYS_TIME_H
+#ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/queue.h>
index ab32ecb4b2f186fc2e955dea03c5b7d647d5e077..7bdec59da25eb1ca95551be7839e6a05396e5e5d 100644 (file)
@@ -31,7 +31,7 @@
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 #ifndef WIN32
 #include <sys/socket.h>
@@ -40,7 +40,7 @@
 #include <arpa/inet.h>
 #include <unistd.h>
 #endif
-#ifdef HAVE_NETINET_IN6_H
+#ifdef _EVENT_HAVE_NETINET_IN6_H
 #include <netinet/in6.h>
 #endif
 #include <stdio.h>
@@ -261,7 +261,7 @@ regress_sockaddr_port_parse(void)
                if (ent->sa_family == AF_INET) {
                        struct sockaddr_in sin;
                        memset(&sin, 0, sizeof(sin));
-#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
+#ifdef _EVENT_HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
                        sin.sin_len = sizeof(sin);
 #endif
                        sin.sin_family = AF_INET;
@@ -277,7 +277,7 @@ regress_sockaddr_port_parse(void)
                } else {
                        struct sockaddr_in6 sin6;
                        memset(&sin6, 0, sizeof(sin6));
-#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
+#ifdef _EVENT_HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
                        sin6.sin6_len = sizeof(sin6);
 #endif
                        sin6.sin6_family = AF_INET6;
index 9de6696716fdce2b56ad3a4eec1e1b6f5030fdeb..089b9928a6f2a008855785403b3c688fb0bbfbbe 100644 (file)
@@ -31,7 +31,7 @@
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 #include <sys/types.h>
index 9577ed5dfe3c49c964ced2595381e7a419fef6d7..5706aed6c602b66974580edadf50b66e54b92416 100644 (file)
@@ -3,7 +3,7 @@
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 
@@ -13,7 +13,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #include <fcntl.h>
index c368715fd67d2592c08466daa0dc429e21f09912..6e2ec141f7141d19e47844c1b9ee5297fb9f672a 100644 (file)
@@ -3,14 +3,14 @@
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #include <fcntl.h>
index b44a63705ae4ebff2966057deef9cc52ab46e392..14bed7c4ac705f14250a2c78ae42d9aef14545dd 100644 (file)
@@ -3,7 +3,7 @@
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 
index 9198265655bbd4db5191013b6cd2618ff5b3a939..73af086be8ed3e92e63baecc5759b38899f5723e 100644 (file)
@@ -3,7 +3,7 @@
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "event-config.h"
 #endif
 
 
@@ -13,7 +13,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _EVENT_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #include <fcntl.h>