This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to allow newlib to compile when winsup not present


I've applied this patch to newlib, so that it will compile for the
i686-pc-cygwin target, when winsup is not in the source tree.
Previously, the newlib build failed because pthread_t was undefined.

Index: libc/include/sys/signal.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/signal.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -c -r1.9 -r1.10
*** signal.h	2001/10/22 16:40:26	1.9
--- signal.h	2002/01/24 00:52:27	1.10
***************
*** 158,164 ****
  int _EXFUN(sigsuspend, (const sigset_t *));
  int _EXFUN(sigpause, (int));
  
! #if defined(_POSIX_THREADS)
  int _EXFUN(pthread_kill, (pthread_t thread, int sig));
  #endif
  
--- 158,164 ----
  int _EXFUN(sigsuspend, (const sigset_t *));
  int _EXFUN(sigpause, (int));
  
! #if defined(_POSIX_THREADS) && !defined(__CYGWIN__)
  int _EXFUN(pthread_kill, (pthread_t thread, int sig));
  #endif
  

-- 
Thomas Fitzsimmons
Red Hat Canada Limited        e-mail: fitzsim@redhat.com
2323 Yonge Street, Suite 300
Toronto, ON M4P2C9


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]