Include windows.h on Windows
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 Oct 2012 08:36:38 +0000 (10:36 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 Oct 2012 08:36:38 +0000 (10:36 +0200)
This is to ensure that struct timeval is defined.

src/client.c

index 426b289..44ee5d5 100644 (file)
@@ -33,6 +33,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef WIN32
+#include <windows.h>
+#endif
 #include <signal.h>
 #include <assert.h>