Add required include to build with cygwin.
authorMagnus Hagander <magnus@hagander.net>
Tue, 18 Nov 2008 21:17:26 +0000 (21:17 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 18 Nov 2008 21:17:26 +0000 (21:17 +0000)
Andrew Chernow

src/test/thread/thread_test.c

index 123e6363b8a55a1c4d2e9d7b3dc9ae21ce10ffb3..2fe305f8ac4a253600137a16753915b54298d2f9 100644 (file)
@@ -47,6 +47,10 @@ typedef char bool;
 #include <fcntl.h>
 #include <errno.h>
 
+/* CYGWIN requires this for MAXHOSTNAMELEN */
+#ifdef __CYGWIN__
+#include <sys/param.h>
+#endif
 
 /******************************************************************
  * Windows Hacks