From: Niels Provos Date: Fri, 1 Apr 2005 04:20:39 +0000 (+0000) Subject: build fixes from nick mathewson X-Git-Tag: release-1.1b~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32bed8f9b640757766937dec613ca9b1feb704a4;p=libevent build fixes from nick mathewson svn:r139 --- diff --git a/buffer.c b/buffer.c index e30c46f3..f334f219 100644 --- a/buffer.c +++ b/buffer.c @@ -25,12 +25,17 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #ifdef HAVE_CONFIG_H #include "config.h" #endif +#ifdef HAVE_VASPRINTF +/* If we have vasprintf, we need to define this before we include stdio.h. */ +#define _GNU_SOURCE +#endif + +#include + #ifdef HAVE_SYS_TIME_H #include #endif diff --git a/log.c b/log.c index 7aac5ef3..6b5755f8 100644 --- a/log.c +++ b/log.c @@ -37,6 +37,10 @@ * SUCH DAMAGE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include @@ -47,7 +51,7 @@ #include #ifdef HAVE_SYS_TIME_H #include -#else +#else #include #endif #include @@ -57,6 +61,8 @@ #include #include "event.h" +#include "log.h" + static void _warn_helper(int severity, int log_errno, const char *fmt, va_list ap); static void event_log(int severity, const char *msg); diff --git a/signal.c b/signal.c index cc557388..19a85f14 100644 --- a/signal.c +++ b/signal.c @@ -56,10 +56,6 @@ static short evsigcaught[NSIG]; static int needrecalc; volatile sig_atomic_t evsignal_caught = 0; -void evsignal_process(void); -int evsignal_recalc(sigset_t *); -int evsignal_deliver(sigset_t *); - static struct event ev_signal; static int ev_signal_pair[2]; static int ev_signal_added;