]> granicus.if.org Git - libevent/commitdiff
We do not work any more without an event-config.h; stop pretending that it is meaning...
authorNick Mathewson <nickm@torproject.org>
Fri, 6 Nov 2009 21:46:57 +0000 (21:46 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 6 Nov 2009 21:46:57 +0000 (21:46 +0000)
svn:r1516

46 files changed:
buffer.c
bufferevent.c
bufferevent_filter.c
bufferevent_openssl.c
bufferevent_pair.c
bufferevent_sock.c
devpoll.c
epoll.c
evdns.c
event.c
event_tagging.c
evmap.c
evport.c
evrpc.c
evthread_pthread.c
evthread_win32.c
evutil.c
http.c
kqueue.c
listener.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_buffer.c
test/regress_bufferevent.c
test/regress_dns.c
test/regress_http.c
test/regress_main.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 bcfedb8ebcbec3e6f5761b75524b5a7bfad40fbc..8bd37d6e040acb35eb2082e045d08c19f12264b0 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -25,9 +25,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
index 4de9b1e92da662e160113927bb21b0c96260d1d8..f291f29fe459ee72b3a8f45725d7b110497b093a 100644 (file)
@@ -27,9 +27,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
index 33f4d352ab55bb3062d3e9a9cfb413da5ed5b48e..7002b05ea6f913774a5efe3578da3ca9e87b261e 100644 (file)
@@ -28,9 +28,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
index ba8e7f9576b72303c559d4c25348fc1ff63cc724..72537c19ce81d2aeedefaee3cd5e5c58155e561d 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
index 3d1a16708aaa713228131482be90dca736542a0e..631827598a665be469806cebdac34368fc0b9f8d 100644 (file)
@@ -30,9 +30,7 @@
 #include <winsock2.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include "event2/util.h"
 #include "event2/buffer.h"
index 0b15b6b1de093c265069744932d5c0051ee73fb3..f3551a3f62e688cc9170462d16c8a721e5f73e1e 100644 (file)
@@ -28,9 +28,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT_HAVE_SYS_TIME_H
 #include <sys/time.h>
index 25664fa7955e6d53493d99df91c9c100ff610943..638b32d951f7b562d3d6dd1a4114e5b3a6225429 100644 (file)
--- a/devpoll.c
+++ b/devpoll.c
@@ -23,9 +23,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/resource.h>
diff --git a/epoll.c b/epoll.c
index 70e8eb3e6ce1aa8304e43280433e8626893a3690..7ac5b96ed24b9b734a094382e2f10477d37cb9df 100644 (file)
--- a/epoll.c
+++ b/epoll.c
@@ -24,9 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <stdint.h>
 #include <sys/types.h>
diff --git a/evdns.c b/evdns.c
index 6293b0d6f6217b0529e1b34a1e0473b3ad88521f..3c562dc9c738c8bb742dc03cbfbb476a23efcb68 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -35,9 +35,7 @@
  */
 
 #include <sys/types.h>
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT_DNS_USE_FTIME_FOR_ID
 #include <sys/timeb.h>
diff --git a/event.c b/event.c
index d59fe5bbfb320f01a75e0b952509cb9ba090a236..d8b7b1bc02e9f565c52b715e5e2a687631f7482c 100644 (file)
--- a/event.c
+++ b/event.c
@@ -24,9 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
index f1d7a992770e3610c0e848b3aac60ebb4e547bda..bbd0f07be477900361002ecddc192b99b91023d0 100644 (file)
@@ -24,9 +24,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
diff --git a/evmap.c b/evmap.c
index 32443472273f4e0803357ce256d05a077b998a4e..00cb80e213b03b4700cc3417a44ee67cfe3dba22 100644 (file)
--- a/evmap.c
+++ b/evmap.c
@@ -23,9 +23,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
index 4c5215030405ddd208bf66dde59b5ba7fc2f4a8d..f293f31b3f40c0ee69fdca050efbb9d362d4ae5f 100644 (file)
--- a/evport.c
+++ b/evport.c
@@ -50,9 +50,7 @@
  * As in the select(2) implementation, signals are handled by evsignal.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/time.h>
 #include <sys/queue.h>
diff --git a/evrpc.c b/evrpc.c
index c022cb29d88dec439c65fddae868446f7aa0f7fe..e05972c325657e69524c39b078eb4c86eb9867d6 100644 (file)
--- a/evrpc.c
+++ b/evrpc.c
@@ -24,9 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #define WIN32_LEAN_AND_MEAN
index 0263c74723e968405b28fa0d905e7296ce0574af..a76f42963db75ecfa53cd6249993bd9e8561e300 100644 (file)
@@ -23,9 +23,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 /* With glibc we need to define this to get PTHREAD_MUTEX_RECURSIVE. */
 #define _GNU_SOURCE
index 9d37da3fbf1915acd844ea3a1cb9e772aec12271..5e341f8839ab6fe98ab137326c98b1643eb5e634 100644 (file)
@@ -23,9 +23,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
index 39d40b10228774593d2be89eb539e9662976e7ab..5a57c288cd281a4695376af6d147074a318cb6bf 100644 (file)
--- a/evutil.c
+++ b/evutil.c
@@ -23,9 +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.
  */
-#ifdef HAVE_CONFIG_H
+
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
diff --git a/http.c b/http.c
index c1e16e5a2de7384e16e51de392c78b0bfd7e1ce4..8ad4523e8a12a44b48e0bbe73f92342b3b9d3eaf 100644 (file)
--- a/http.c
+++ b/http.c
@@ -25,9 +25,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
+
 #define _REENTRANT
 
 #ifdef _EVENT_HAVE_SYS_PARAM_H
index 7a92bbda323dbe5fc52a3220bd5123d6cadb9468..7334ab33aa8d9f0fe8d566dd24ed93ff5b407435 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
@@ -26,9 +26,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #define _GNU_SOURCE
 
index 7e49ed0d09f23de1f10f3a5271fd666ce80ff437..c65538fae0e79635e3f2884cff11126678887393 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
diff --git a/log.c b/log.c
index 4bf22d04f1b57399fb5cbb34723ed63d2ae325da..9c97ace87e04443c31917dfbb71f15cd13620876 100644 (file)
--- a/log.c
+++ b/log.c
@@ -37,9 +37,7 @@
  * SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #include <winsock2.h>
diff --git a/poll.c b/poll.c
index e11699ce877b472991bfdb5fb6833f7ed8118327..d87bbdc603121dc2df5ab7d2ed100775e98aa84f 100644 (file)
--- a/poll.c
+++ b/poll.c
@@ -26,9 +26,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #ifdef _EVENT_HAVE_SYS_TIME_H
index 3a06d3bfe83727efcd2c6622682f56f43b4e7ccb..b530e8fa1bd6dc434a7fead65e41e0a929738fc2 100644 (file)
@@ -3,9 +3,7 @@
  * cc -I/usr/local/include -o event-test event-test.c -L/usr/local/lib -levent
  */
 
-#ifdef HAVE_CONFIG_H
-#include "event-config.h"
-#endif
+#include <event-config.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 4a3a738ea16eada1066d62a6eb905cdfa5474aa4..f63168392113faceb0ab3a93458369bac41aaed3 100644 (file)
@@ -6,9 +6,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
-#include "event-config.h"
-#endif
+#include <event-config.h>
 
 #include <sys/stat.h>
 #ifndef WIN32
index 82612b69feedc39a431dcdf87a3af9ce1167e9d9..098ed86fc56296423ac032e3157f15fec25fa1ef 100644 (file)
@@ -5,9 +5,7 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_CONFIG_H
-#include "event-config.h"
-#endif
+#include <event-config.h>
 
 #include <sys/stat.h>
 #ifndef WIN32
index 4ec21e5791af315df6c32c5df9d6e1c770d0db35..63f2b6e8f43d26c93b790a70819604e3cdf7bdce 100644 (file)
--- a/select.c
+++ b/select.c
@@ -26,9 +26,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #ifdef _EVENT_HAVE_SYS_TIME_H
index 07126088c92b7d7a40255600d610075490cfba12..3cf45f2b3c3cabe9f5ec63df502a96374cd6b15f 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -26,9 +26,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef WIN32
 #define WIN32_LEAN_AND_MEAN
index 12f09a384d765716b7e55ea6be2f2ab989cc3e0a..358daae78cc2bafcf4caae9dc449b57e5a6842d3 100644 (file)
@@ -5,9 +5,7 @@
 extern "C" {
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif /* HAVE_CONFIG_H */
 
 #ifndef _EVENT_HAVE_STRLCPY
 #include <string.h>
index 7fd0884ad638b95de617c1dcc953d389ba86c812..51c37dd1462faeb8219e1d61240b938713ef0029 100644 (file)
--- a/strlcpy.c
+++ b/strlcpy.c
@@ -33,9 +33,7 @@ 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 "event-config.h"
-#endif /* HAVE_CONFIG_H */
 
 #ifndef _EVENT_HAVE_STRLCPY
 #include "strlcpy-internal.h"
index 9e57d16aee42e926c7e2fb01decdad21433f7cfc..570897b41337c3c2939a805a134a476332cf1673 100644 (file)
@@ -33,9 +33,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 59cbc50ff4024dc80772c24c58e0d9455b7b50f7..0990c75e72c3e9ea8a65e7149be105fc8e4f257b 100644 (file)
@@ -25,9 +25,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 260880744f8c10cda102ac8f801c5e406a7d2a67..1f67698a0dbd3f33ef1756990b36e5e259ada4cc 100644 (file)
@@ -25,9 +25,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 8a984b34b36a873dd79459d4e3adc08bddb2f598..85cfa11f6affaa1b0907144b43fab005a06896da 100644 (file)
@@ -30,9 +30,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 59ad45ba6749691c4248ddaa0a254dcf3806d1a3..3421b922ab3a44b78db7099c8016fb6273a56ca2 100644 (file)
@@ -30,9 +30,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 98e70434678a48709dd9b02f63c0a004cf406fd1..334261de718d1632f16163c1398c031c4a45b7fc 100644 (file)
@@ -30,9 +30,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 348bcb429176d303ea0af614386f345a633d52c9..7bd33866214ef5b3a786f8001cb6a9bcbbf093c3 100644 (file)
@@ -31,9 +31,7 @@
 #include <ws2tcpip.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 2fa58b8b32cd413723985df66ee176a7fefd00a6..6bff6af70e615df32640e75c7e2c4d7440806f1b 100644 (file)
@@ -30,9 +30,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index f252802521ab61085c6d8513b389bafe61e758fb..781f1c4d9c9d4b3c1d3008144d7c2511c4199983 100644 (file)
@@ -30,9 +30,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #ifdef _EVENT___func__
 #define __func__ _EVENT___func__
index 3010e4e7c1c2d1bc9fe03c1a43bc25d693646caa..acfd4327d7176837ce5559aee58b4caf13f96c96 100644 (file)
@@ -24,9 +24,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <stdio.h>
index 877d227d3866e7b502959604fcba0ad76ab00c08..73462c65291d32b2a3793af6fdf59ca14d34e198 100644 (file)
@@ -30,9 +30,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 55aba1fe93567053a76c95a0be70fd01bc8ceb41..092058e6a244a3a414b2f3f2f2de645dbc2f0d08 100644 (file)
@@ -29,9 +29,8 @@
 #include <ws2tcpip.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
+
 #ifndef WIN32
 #include <sys/socket.h>
 #include <netinet/in.h>
index 25cba6df25772fd9974a99f3fc26a21005ad5a9f..148240df2e5e71b3d12833dab30437f03576f269 100644 (file)
@@ -29,9 +29,7 @@
 #include <windows.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
 
 #include <sys/types.h>
 #ifndef WIN32
index 0c17093b32b027ef86c4bb0049adaf6d6ede1a87..47c6c8b0fa44785cff0805494d065600eae4c22c 100644 (file)
@@ -2,10 +2,7 @@
  * Compile with:
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
-
 
 #ifdef WIN32
 #include <winsock2.h>
index b622217d1e1d57282a86a43e1776dca81320fc7d..68ad561ac5db34f201f44664e001683a339d01c8 100644 (file)
@@ -2,10 +2,7 @@
  * Compile with:
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
-
 
 #include <sys/types.h>
 #include <sys/stat.h>
index cf96bf5efc88290f58e9eb904e547a39caf5ccd3..a50d2957a7328d48392af3f4e3e15e2cbb5450dd 100644 (file)
@@ -2,10 +2,7 @@
  * Compile with:
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
-
 
 #include <sys/types.h>
 #include <sys/stat.h>
index a2a7eb32ebcb5e0d48ec507643d91c6dc01bb646..6dc752e172557032eb9fafd1ea1b0819bb777ee0 100644 (file)
@@ -2,10 +2,7 @@
  * Compile with:
  * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
  */
-#ifdef HAVE_CONFIG_H
 #include "event-config.h"
-#endif
-
 
 #ifdef WIN32
 #include <winsock2.h>