mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
Always use compiler builtin for offsetof()
We have received multiple reports of GCC breaking builds when compiler flags like `-std=c11` were being passed. The workaround until the next release is to simply not define `__STRICT_ANSI__` which is a bad idea.
This commit is contained in:
parent
e36283f1d9
commit
06ace4e7b4
2 changed files with 1 additions and 6 deletions
|
@ -71,7 +71,7 @@ static void _pthread_cancel_sig(int sig, siginfo_t *si, void *arg) {
|
|||
if (pt->pt_flags & PT_NOCANCEL) return;
|
||||
if (!atomic_load_explicit(&pt->pt_canceled, memory_order_acquire)) return;
|
||||
|
||||
// in asynchronous mode we'll just the exit asynchronously
|
||||
// in asynchronous mode the asynchronous signal calls exit
|
||||
if (pt->pt_flags & PT_ASYNC) {
|
||||
sigaddset(&ctx->uc_sigmask, SIGTHR);
|
||||
pthread_sigmask(SIG_SETMASK, &ctx->uc_sigmask, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue