diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-22 22:12:10 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-22 22:12:10 -0400 |
commit | 030b452b8d6c95be6b6de661aed96e8379d1a80e (patch) | |
tree | 502c8949e763e6962cfd884391645d07daf5b1cf /arch/x86_64/bits/signal.h | |
parent | 96601e3c617bb2122265419f0895730ed794f5af (diff) | |
download | musl-030b452b8d6c95be6b6de661aed96e8379d1a80e.tar.gz musl-030b452b8d6c95be6b6de661aed96e8379d1a80e.tar.bz2 musl-030b452b8d6c95be6b6de661aed96e8379d1a80e.tar.xz musl-030b452b8d6c95be6b6de661aed96e8379d1a80e.zip |
fix missing _BSD_SOURCE support in bits/*.h
this is actually rather ugly, and would get even uglier if we ever
want to support further feature test macros. at some point i may
factor the bits headers into separate files for C base, POSIX base,
and nonstandard extensions (the only distinctions that seem to matter
now) and then the logic for which to include can go in the main header
rather than being duplicated for each arch. the downside of this is
that it would result in more files having to be opened during
compilation, so as long as the ugliness does not grow, i'm inclined to
leave it alone for now.
Diffstat (limited to 'arch/x86_64/bits/signal.h')
-rw-r--r-- | arch/x86_64/bits/signal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/bits/signal.h b/arch/x86_64/bits/signal.h index ecc4e9ff..11375b9a 100644 --- a/arch/x86_64/bits/signal.h +++ b/arch/x86_64/bits/signal.h @@ -1,5 +1,5 @@ #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ - || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) struct __fpstate { unsigned long __x[4]; @@ -31,7 +31,7 @@ typedef struct __ucontext { #define SA_RESETHAND 0x80000000 #define SA_RESTORER 0x04000000 -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) struct sigcontext { unsigned long r8, r9, r10, r11, r12, r13, r14, r15; unsigned long rdi, rsi, rbp, rbx, rdx, rax, rcx, rsp, rip, eflags; |