#include <event.h>
+#ifdef _EVENT___func__
+#define __func__ _EVENT___func__
+#endif
+
int called = 0;
static void
main (int argc, char **argv)
{
struct event signal_int;
+#ifdef WIN32
+ WORD wVersionRequested;
+ WSADATA wsaData;
+ int err;
+
+ wVersionRequested = MAKEWORD(2, 2);
+
+ err = WSAStartup(wVersionRequested, &wsaData);
+#endif
/* Initalize the event library */
event_init();
#include <event.h>
#include <evutil.h>
+#ifdef _EVENT___func__
+#define __func__ _EVENT___func__
+#endif
+
int lasttime;
static void
struct event timeout;
struct timeval tv;
+#ifdef WIN32
+ WORD wVersionRequested;
+ WSADATA wsaData;
+ int err;
+
+ wVersionRequested = MAKEWORD(2, 2);
+
+ err = WSAStartup(wVersionRequested, &wsaData);
+#endif
+
/* Initalize the event library */
event_init();