Make sure we have libevent enabled for now, and add macro protection around the areas of the code that still depend on libevent.

This commit is contained in:
Jan Vidar Krey
2009-12-09 17:27:46 +01:00
parent 2e2f93d0a4
commit 4a4de0f2ac
4 changed files with 18 additions and 5 deletions

View File

@@ -102,7 +102,9 @@
#define uhub_assert assert
#ifdef USE_LIBEVENT
#include <event.h>
#endif
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__sun__)
#undef HAVE_STRNDUP