diff --git a/examples/eventloop/c_eventloop.c b/examples/eventloop/c_eventloop.c index 24cebbb29f..83444df151 100644 --- a/examples/eventloop/c_eventloop.c +++ b/examples/eventloop/c_eventloop.c @@ -11,7 +11,14 @@ #include #include #include + +#if defined(_WIN32) +#include +#define poll WSAPoll +#pragma comment(lib, "ws2_32") +#else #include +#endif #include "duktape.h" #include "c_eventloop.h"