X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=219bf006d51beb491a8c0d77ec8bada802f2bdbf;hb=52cf24a0f45f208b1627a64e4af9a5ed8cb28ae7;hp=24cbeb25d136b06f29ab33b03e832d348f9d75c2;hpb=99b8a25e941e54537bf39ca2f265c345f393f112;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 24cbeb25..219bf006 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -12,6 +12,7 @@ #include #include #include +#include #include "libc.h" #include "syscall.h" #include "atomic.h" @@ -44,6 +45,7 @@ struct pthread { } robust_list; int unblock_cancel; int delete_timer; + locale_t locale; }; struct __timer { @@ -79,8 +81,10 @@ struct __timer { #define SIGCANCEL 33 #define SIGSYSCALL 34 -#define SIGPT_SET ((sigset_t){{[sizeof(long)==4] = 3<<(32*(sizeof(long)>4))}}) -#define SIGTIMER_SET ((sigset_t){{ 0x80000000 }}) +#define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ + [sizeof(long)==4] = 3<<(32*(sizeof(long)>4)) }) +#define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ + 0x80000000 }) int __set_thread_area(void *); int __libc_sigaction(int, const struct sigaction *, struct sigaction *);