diff options
author | Angelo Compagnucci <angelo.compagnucci@gmail.com> | 2016-06-27 22:32:11 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-07-28 16:56:09 +0300 |
commit | d5aec290cb9a528601e4b8da5da2fa0fad1e9a46 (patch) | |
tree | 095ca0affd7e3a2af6db2ccd543284cf7f7fc695 /libgc/os_dep.c | |
parent | a329632db2addc16a2f205488ba5fe1fb137e2a8 (diff) |
[libgc] fix musl incorrect sigcontext include
On musl __GLIBC__ is not defined, so the conditional logic will
not produce correct result. Add a specific case to handle when
__GLIBC__ is not defined.
Diffstat (limited to 'libgc/os_dep.c')
-rw-r--r-- | libgc/os_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgc/os_dep.c b/libgc/os_dep.c index 8c8e0981dd6..191e4b4ed7d 100644 --- a/libgc/os_dep.c +++ b/libgc/os_dep.c @@ -26,7 +26,7 @@ # define __KERNEL__ # include <asm/signal.h> # undef __KERNEL__ -# else +# elif defined(__GLIBC__) /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */ /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */ /* prototypes, so we have to include the top-level sigcontext.h to */ |