From: Magnus Hagander Date: Tue, 18 Nov 2008 21:17:26 +0000 (+0000) Subject: Add required include to build with cygwin. X-Git-Tag: REL9_0_0~2818 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=667685ca7da3b895fe362863c3da00b010543399;p=pg-rex%2Fsyncrep.git Add required include to build with cygwin. Andrew Chernow --- diff --git a/src/test/thread/thread_test.c b/src/test/thread/thread_test.c index 51912f57f7..d952b6fc1d 100644 --- a/src/test/thread/thread_test.c +++ b/src/test/thread/thread_test.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/test/thread/thread_test.c,v 1.5 2008/01/01 19:46:01 momjian Exp $ + * $PostgreSQL: pgsql/src/test/thread/thread_test.c,v 1.6 2008/11/18 21:17:26 mha Exp $ * * This program tests to see if your standard libc functions use * pthread_setspecific()/pthread_getspecific() to be thread-safe. @@ -47,6 +47,10 @@ typedef char bool; #include #include +/* CYGWIN requires this for MAXHOSTNAMELEN */ +#ifdef __CYGWIN__ +#include +#endif /****************************************************************** * Windows Hacks