]> granicus.if.org Git - libevent/commitdiff
test/tinytest_demo: include <windows.h> for win32 to fix tdm-gcc
authorAzat Khuzhin <a3at.mail@gmail.com>
Wed, 24 Feb 2016 11:02:37 +0000 (14:02 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 24 Feb 2016 11:12:55 +0000 (14:12 +0300)
From: @gvanem
Fixes: #325
test/tinytest_demo.c

index bdd0e600897b91e448ba3e2517d5bd5799cabe50..f6bfd66a1a1f13d623bb57344a14ad301d9e6bf5 100644 (file)
@@ -36,7 +36,9 @@
 #include <string.h>
 #include <errno.h>
 #include <time.h>
-#ifndef _WIN32
+#ifdef _WIN32
+#include <windows.h>
+#else
 #include <unistd.h>
 #endif