|
6 | 6 | * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group |
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - *$PostgreSQL: pgsql/src/test/thread/thread_test.c,v 1.5 2008/01/01 19:46:01 momjian Exp $ |
| 9 | + *$PostgreSQL: pgsql/src/test/thread/thread_test.c,v 1.6 2008/11/18 21:17:26 mha Exp $ |
10 | 10 | * |
11 | 11 | *This program tests to see if your standard libc functions use |
12 | 12 | *pthread_setspecific()/pthread_getspecific() to be thread-safe. |
@@ -47,6 +47,10 @@ typedef char bool; |
47 | 47 | #include<fcntl.h> |
48 | 48 | #include<errno.h> |
49 | 49 |
|
| 50 | +/* CYGWIN requires this for MAXHOSTNAMELEN */ |
| 51 | +#ifdef__CYGWIN__ |
| 52 | +#include<sys/param.h> |
| 53 | +#endif |
50 | 54 |
|
51 | 55 | /****************************************************************** |
52 | 56 | * Windows Hacks |
|