X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=56b92b22cca20d9fd1b4b91ad818d34e8d9ef8d5;hb=a749ba3adc2f3b4abfc68b21d4c3741b20c8f657;hp=46d8fdd2a317c424eb669fda5b6e00db8efacfcb;hpb=bbbe87e35cfeef593e23010e35528e722027567f;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 46d8fdd2..56b92b22 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -90,9 +90,12 @@ struct __timer { #define SIGCANCEL 33 #define SIGSYNCCALL 34 -#define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ +#define SIGALL_SET ((sigset_t *)(const unsigned long long [2]){ -1,-1 }) +#define SIGPT_SET \ + ((sigset_t *)(const unsigned long [__SYSCALL_SSLEN/sizeof(long)]){ \ [sizeof(long)==4] = 3UL<<(32*(sizeof(long)>4)) }) -#define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ +#define SIGTIMER_SET \ + ((sigset_t *)(const unsigned long [__SYSCALL_SSLEN/sizeof(long)]){ \ 0x80000000 }) pthread_t __pthread_self_init(void);