summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2005-04-01 04:20:39 +0000
committerNiels Provos <provos@gmail.com>2005-04-01 04:20:39 +0000
commit32bed8f9b640757766937dec613ca9b1feb704a4 (patch)
tree164dbd9ffe8cdc0a20ed54235668ba429b694f4e /log.c
parent1919a4aed60dc9c95aef10974dc6945f01832377 (diff)
downloadlibevent-32bed8f9b640757766937dec613ca9b1feb704a4.tar.gz
build fixes from nick mathewson
svn:r139
Diffstat (limited to 'log.c')
-rw-r--r--log.c8
1 files changed, 7 insertions, 1 deletions
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 <windows.h>
@@ -47,7 +51,7 @@
#include <sys/tree.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-#else
+#else
#include <sys/_time.h>
#endif
#include <stdio.h>
@@ -57,6 +61,8 @@
#include <errno.h>
#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);