comment non-obvious de bruijn sequence code in int parser
[musl] / src / internal / pthread_impl.h
index 615713c..2089c85 100644 (file)
@@ -12,6 +12,7 @@
 #include <setjmp.h>
 #include <string.h>
 #include <time.h>
+#include <locale.h>
 #include "libc.h"
 #include "syscall.h"
 #include "atomic.h"
@@ -44,6 +45,8 @@ struct pthread {
        } robust_list;
        int unblock_cancel;
        int delete_timer;
+       locale_t locale;
+       int killlock;
 };
 
 struct __timer {
@@ -80,7 +83,7 @@ struct __timer {
 #define SIGSYSCALL 34
 
 #define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \
-       [sizeof(long)==4] = 3<<(32*(sizeof(long)>4)) })
+       [sizeof(long)==4] = 3UL<<(32*(sizeof(long)>4)) })
 #define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \
         0x80000000 })