diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-07-06 08:32:39 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-07-06 08:34:48 +0300 |
commit | 84e77b6b1e22420ba7d9eda7c90ba6a5ac943e92 (patch) | |
tree | 589b06162b8fa8ec6d66c8174b319cb94b7cde95 /os_dep.c | |
parent | cecfce9b62ad41568925bd5c214fd1a33e45ed02 (diff) | |
download | bdwgc-84e77b6b1e22420ba7d9eda7c90ba6a5ac943e92.tar.gz |
Define SUNOS5SIGS macro for kFreeBSD
(fix of commit 8bb9205df)
Issue #184 (bdwgc).
* include/private/gcconfig.h [MPROTECT_VDB && (__GLIBC__<2
|| __GLIBC__==2 && __GLIBC_MINOR__<2)]: Move error directive from
os_dep.c.
* include/private/gcconfig.h [FREEBSD && __GLIBC__] (SUNOS5SIGS):
Define.
* os_dep.c [MPROTECT_VDB && !DARWIN && FREEBSD] (GC_dirty_init): Do not
check __GLIBC__.
Diffstat (limited to 'os_dep.c')
-rw-r--r-- | os_dep.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -3188,12 +3188,6 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_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 */ @@ -3478,7 +3472,7 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void) GC_VERBOSE_LOG_PRINTF("Replaced other SIGSEGV handler\n"); } # if defined(HPUX) || defined(HURD) \ - || (defined(FREEBSD) && (defined(__GLIBC__) || defined(SUNOS5SIGS))) + || (defined(FREEBSD) && defined(SUNOS5SIGS)) sigaction(SIGBUS, &act, &oldact); if ((oldact.sa_flags & SA_SIGINFO) != 0) { GC_old_bus_handler = oldact.sa_sigaction; |