about summary refs log tree commit diff
path: root/src/internal/pthread_impl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-05-07 23:37:10 -0400
committerRich Felker <dalias@aerifal.cx>2011-05-07 23:37:10 -0400
commit4c4e22d781d75a461097cccc2ecac5adbafb1a59 (patch)
tree0130e1e296075932808e72629256d81cb35458d1 /src/internal/pthread_impl.h
parent99b8a25e941e54537bf39ca2f265c345f393f112 (diff)
downloadmusl-4c4e22d781d75a461097cccc2ecac5adbafb1a59.tar.gz
musl-4c4e22d781d75a461097cccc2ecac5adbafb1a59.tar.xz
musl-4c4e22d781d75a461097cccc2ecac5adbafb1a59.zip
optimize compound-literal sigset_t's not to contain useless hurd bits
Diffstat (limited to 'src/internal/pthread_impl.h')
-rw-r--r--src/internal/pthread_impl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h
index 24cbeb25..615713c7 100644
--- a/src/internal/pthread_impl.h
+++ b/src/internal/pthread_impl.h
@@ -79,8 +79,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 *);