From d5aec290cb9a528601e4b8da5da2fa0fad1e9a46 Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Mon, 27 Jun 2016 21:32:11 +0200 Subject: [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. --- libgc/os_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgc') 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 # 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 */ -- cgit v1.2.3