X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fpthreads_win32.h;h=a8f99a8e6a2b2da19182aabe0873620dfdbc1ed0;hb=cd1b14acf6f548b28b8a14e554d779f0473122ec;hp=2d4b066e95c4bd502eb8caf7dcb82a0cbc85d6f0;hpb=7aef55b130d95c384b63422807f1848faa9aba5a;p=sbcl.git diff --git a/src/runtime/pthreads_win32.h b/src/runtime/pthreads_win32.h index 2d4b066..a8f99a8 100644 --- a/src/runtime/pthreads_win32.h +++ b/src/runtime/pthreads_win32.h @@ -16,8 +16,12 @@ typedef int sigset_t; /* 0 - Misc */ +#ifndef SIG_IGN #define SIG_IGN ((void (*)(int, siginfo_t, void*))-1) +#endif +#ifndef SIG_DFL #define SIG_DFL ((void (*)(int, siginfo_t, void*))-2) +#endif #define SIGHUP 1 #define SIGINT 2 /* Interactive attention */ @@ -42,7 +46,9 @@ typedef int sigset_t; #define SIGRTMIN 23 +#ifndef NSIG #define NSIG 32 /* maximum signal number + 1 */ +#endif /* To avoid overusing system TLS, pthread provides its own */ #define PTHREAD_KEYS_MAX 128 @@ -180,7 +186,10 @@ int pthread_cond_signal(pthread_cond_t *cond); int pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec * abstime); int pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex); -#define ETIMEDOUT 123 //Something +/* some MinGWs seem to include it, others not: */ +#ifndef ETIMEDOUT +# define ETIMEDOUT 123 //Something +#endif int sched_yield();