Skip to content

Commit 667685c

Browse files
committed
Add required include to build with cygwin.
Andrew Chernow
1 parent f426fbf commit 667685c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/thread/thread_test.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
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 $
1010
*
1111
* This program tests to see if your standard libc functions use
1212
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -47,6 +47,10 @@ typedef char bool;
4747
#include <fcntl.h>
4848
#include <errno.h>
4949

50+
/* CYGWIN requires this for MAXHOSTNAMELEN */
51+
#ifdef __CYGWIN__
52+
#include <sys/param.h>
53+
#endif
5054

5155
/******************************************************************
5256
* Windows Hacks

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy