From 0ee4597aed7ef1d247acbb4ec7ba472ca6716929 Mon Sep 17 00:00:00 2001 From: "Asanka C. Herath" Date: Tue, 23 Nov 2010 02:23:22 -0500 Subject: [PATCH] Always include in roken implementation Remove unnecessary ifdefs and add to dlfcn_w32.c. This is required for correct export declarations when building roken as a DLL. --- lib/roken/dirent.c | 2 -- lib/roken/dlfcn_w32.c | 1 + lib/roken/getifaddrs_w32.c | 2 -- lib/roken/simple_exec_w32.c | 3 --- lib/roken/sleep.c | 2 -- lib/roken/sockstartup_w32.c | 2 -- lib/roken/syslogc.c | 2 -- 7 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/roken/dirent.c b/lib/roken/dirent.c index a0301e207..bf28d5224 100644 --- a/lib/roken/dirent.c +++ b/lib/roken/dirent.c @@ -29,9 +29,7 @@ * **********************************************************************/ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/lib/roken/dlfcn_w32.c b/lib/roken/dlfcn_w32.c index 08005f70c..5898f1682 100644 --- a/lib/roken/dlfcn_w32.c +++ b/lib/roken/dlfcn_w32.c @@ -29,6 +29,7 @@ * **********************************************************************/ +#include #include #include #include diff --git a/lib/roken/getifaddrs_w32.c b/lib/roken/getifaddrs_w32.c index ff0250baa..7b3f8143a 100644 --- a/lib/roken/getifaddrs_w32.c +++ b/lib/roken/getifaddrs_w32.c @@ -29,9 +29,7 @@ * **********************************************************************/ -#ifdef HAVE_CONFIG_H #include -#endif #include diff --git a/lib/roken/simple_exec_w32.c b/lib/roken/simple_exec_w32.c index 83ef6f9b5..1fca398c1 100644 --- a/lib/roken/simple_exec_w32.c +++ b/lib/roken/simple_exec_w32.c @@ -29,10 +29,7 @@ * **********************************************************************/ -#ifdef HAVE_CONFIG_H #include -RCSID("$Id$"); -#endif #include #include diff --git a/lib/roken/sleep.c b/lib/roken/sleep.c index c19439c53..eac28c166 100644 --- a/lib/roken/sleep.c +++ b/lib/roken/sleep.c @@ -29,9 +29,7 @@ * **********************************************************************/ -#ifdef HAVE_CONFIG_H #include -#endif #include diff --git a/lib/roken/sockstartup_w32.c b/lib/roken/sockstartup_w32.c index 675d5aad7..2dcfdf4a3 100644 --- a/lib/roken/sockstartup_w32.c +++ b/lib/roken/sockstartup_w32.c @@ -29,9 +29,7 @@ * **********************************************************************/ -#ifdef HAVE_CONFIG_H #include -#endif #include diff --git a/lib/roken/syslogc.c b/lib/roken/syslogc.c index b5b3901ca..dcdaa185f 100644 --- a/lib/roken/syslogc.c +++ b/lib/roken/syslogc.c @@ -33,9 +33,7 @@ * Based on code by Alexander Yaworsky */ -#ifdef HAVE_CONFIG_H #include -#endif #include