? .pthread.ChangeLog.swp ? pthread.ChangeLog ? pthread.patch Index: libc/include/sys/features.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/sys/features.h,v retrieving revision 1.2 diff -u -p -r1.2 features.h --- features.h 2001/01/12 02:41:33 1.2 +++ features.h 2001/04/11 23:51:41 @@ -81,6 +81,11 @@ extern "C" { # define _POSIX_JOB_CONTROL 1 # define _POSIX_SAVED_IDS 0 # define _POSIX_VERSION 199009L +# define _POSIX_THREADS 1 +# define _POSIX_THREAD_PROCESS_SHARED 1 +# define _POSIX_THREAD_SAFE_FUNCTIONS 1 +# define _POSIX_THREAD_PRIORITY_SCHEDULING 1 +# define _POSIX_THREAD_ATTR_STACKSIZE 1 #endif #ifdef __cplusplus Index: libc/include/sys/signal.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/sys/signal.h,v retrieving revision 1.7 diff -u -p -r1.7 signal.h --- signal.h 2001/02/15 06:42:35 1.7 +++ signal.h 2001/04/11 23:52:03 @@ -12,7 +12,7 @@ extern "C" { /* #ifndef __STRICT_ANSI__*/ -#if defined(_POSIX_THREADS) || defined(__CYGWIN__) +#if defined(_POSIX_THREADS) #include /* for pthread data types */ #endif Index: libc/include/sys/types.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/sys/types.h,v retrieving revision 1.6 diff -u -p -r1.6 types.h --- types.h 2001/03/20 19:27:56 1.6 +++ types.h 2001/04/11 23:52:04 @@ -206,7 +206,7 @@ typedef struct _types_fd_set { condition variables, and keys. But since RTEMS is currently the only newlib user of these, the ifdef is just on RTEMS. */ -#if defined(__rtems__) +#if defined(__rtems__) || defined(__CYGWIN__) #ifndef __clockid_t_defined typedef _CLOCKID_T_ clockid_t; @@ -220,8 +220,16 @@ typedef _TIMER_T_ timer_t; #include -#if defined(_POSIX_THREADS) +/* Cygwin will probably never have full posix compliance due to little things + * like an inability to set the stackaddress. Cygwin is also using void * + * pointers rather than structs to ensure maximum binary compatability with + * previous releases. + * This means that we don't use the types defined here, but rather in + * + */ +#if defined(_POSIX_THREADS) && !(__CYGWIN__) + #include /* @@ -313,7 +321,10 @@ typedef struct { int is_initialized; /* is this structure initialized? */ int init_executed; /* has the initialization routine been run? */ } pthread_once_t; /* dynamic package initialization */ - +#else +#if defined (__CYGWIN__) +#include +#endif #endif /* defined(_POSIX_THREADS) */ #endif /* defined(__rtems__) */