X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=opt%2Fpthreads%2F_PDCLIB_threadconfig.h;fp=opt%2Fpthreads%2F_PDCLIB_threadconfig.h;h=b855def3d15f14563ae6a2f653af5d815d935b9a;hp=75e6f3a69230cb25eb6bf5ab421962b4a99312c9;hb=3862b03514c94f37966f61693619e6483ead6045;hpb=35d48051496adf237dcd22ff1324e93b6f351284 diff --git a/opt/pthreads/_PDCLIB_threadconfig.h b/opt/pthreads/_PDCLIB_threadconfig.h index 75e6f3a..b855def 100644 --- a/opt/pthreads/_PDCLIB_threadconfig.h +++ b/opt/pthreads/_PDCLIB_threadconfig.h @@ -16,7 +16,16 @@ typedef __darwin_pthread_once_t _PDCLIB_once_flag; #define _PDCLIB_ONCE_FLAG_INIT {_PTHREAD_ONCE_SIG_init, {0}} #else -#error Need to interrogate the C library headers for your platform +/* Just include pthread.h */ +#include +#define _PDCLIB_THR_T pthread_t +#define _PDCLIB_CND_T pthread_cond_t +#define _PDCLIB_MTX_T pthread_mutex_t +#define _PDCLIB_TSS_DTOR_ITERATIONS 5 +#define _PDCLIB_TSS_T pthread_key_t +typedef pthread_once_t _PDCLIB_once_flag; +#define _PDCLIB_ONCE_FLAG_INIT PTHREAD_ONCE_INIT + #endif _PDCLIB_END_EXTERN_C