cygwin configure fails with thread-safety

Поиск
Список
Период
Сортировка
Искать

cygwin configure fails with thread-safety

От:
Andrew Chernow <ac@esilo.com>
Дата:
For cygwin builds, src/test/thread/thread_test.c needs to include 
sys/param.h to get MAXHOSTNAMELEN.  configure is currently failing when 
--enable-thread-safety is used because of this.  See attached patch 
against head.

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/
Index: src/test/thread/thread_test.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/test/thread/thread_test.c,v
retrieving revision 1.5
diff -C6 -r1.5 thread_test.c
*** src/test/thread/thread_test.c	1 Jan 2008 19:46:01 -0000	1.5
--- src/test/thread/thread_test.c	17 Nov 2008 14:59:56 -0000
***************
*** 44,55 ****
--- 44,59 ----
  #include 
  #include 
  #include 
  #include 
  #include 
  
+ /* CYGWIN requires this for MAXHOSTNAMELEN */
+ #ifdef __CYGWIN__
+ #include 
+ #endif
  
  /******************************************************************
   * Windows Hacks
   *****************************************************************/
  
  #ifdef WIN32

Re: cygwin configure fails with thread-safety

От:
Magnus Hagander <magnus@hagander.net>
Дата:
Andrew Chernow wrote:
> For cygwin builds, src/test/thread/thread_test.c needs to include
> sys/param.h to get MAXHOSTNAMELEN.  configure is currently failing when
> --enable-thread-safety is used because of this.  See attached patch
> against head.

Applied, thanks.

//Magnus


FAQ