diff options
-rw-r--r-- | include/private/gcconfig.h | 8 | ||||
-rw-r--r-- | os_dep.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 36d4b1f6..f7bfd288 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2407,6 +2407,12 @@ # define SVR4 #endif +#if defined(MPROTECT_VDB) && defined(__GLIBC__) +# if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2) +# error glibc too old? +# endif +#endif + #if defined(SOLARIS) || defined(DRSNX) /* OS has SOLARIS style semi-undocumented interface */ /* to dynamic loader. */ @@ -2420,7 +2426,7 @@ #endif #if defined(FREEBSD) && (defined(__DragonFly__) || __FreeBSD__ >= 4 \ - || (__FreeBSD_kernel__ >= 4)) + || __FreeBSD_kernel__ >= 4 || defined(__GLIBC__)) # define SUNOS5SIGS #endif @@ -3011,12 +3011,6 @@ STATIC void GC_default_push_other_roots(void) typedef void (* PLAIN_HNDLR_PTR)(int); # endif -# if defined(__GLIBC__) -# if __GLIBC__ < 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 -# error glibc too old? -# endif -# endif - #ifndef DARWIN STATIC SIG_HNDLR_PTR GC_old_segv_handler = 0; /* Also old MSWIN32 ACCESS_VIOLATION filter */ @@ -3343,7 +3337,7 @@ GC_INNER void GC_remove_protection(struct hblk *h, word nblocks, GC_log_printf("Replaced other SIGSEGV handler\n"); } # if defined(HPUX) || defined(LINUX) || defined(HURD) \ - || (defined(FREEBSD) && (defined(__GLIBC__) || defined(SUNOS5SIGS))) + || (defined(FREEBSD) && defined(SUNOS5SIGS)) sigaction(SIGBUS, &act, &oldact); if (oldact.sa_flags & SA_SIGINFO) { GC_old_bus_handler = oldact.sa_sigaction; |