diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-07-05 21:12:58 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-07-27 20:33:24 +0300 |
commit | d52577406517983c76b2f9754514aa5c9cea0b3a (patch) | |
tree | 4655c38b6672cda592ced238b7d1ede9a133bef3 | |
parent | b704fa14cfbe10667cc4653deeb2711149b8265b (diff) | |
download | bdwgc-d52577406517983c76b2f9754514aa5c9cea0b3a.tar.gz |
Revert "Remove nested always-false ifdef for HPUX and FREEBSD"
This reverts commit 2a420e272d9f036130fbf95a359fb4140ff11da3.
The reason: SUNOS5SIGS is defined for HP/UX and some flavors of
FreeBSD.
-rw-r--r-- | os_dep.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -826,7 +826,7 @@ GC_INNER size_t GC_page_size = 0; # if defined(SUNOS5SIGS) || defined(IRIX5) || defined(OSF1) \ || defined(HURD) || defined(FREEBSD) || defined(NETBSD) static struct sigaction old_segv_act; -# if defined(_sigargs) /* !Irix6.x */ \ +# if defined(_sigargs) /* !Irix6.x */ || defined(HPUX) \ || defined(HURD) || defined(NETBSD) || defined(FREEBSD) static struct sigaction old_bus_act; # endif @@ -862,7 +862,8 @@ GC_INNER size_t GC_page_size = 0; # else (void) sigaction(SIGSEGV, &act, &old_segv_act); # if defined(IRIX5) && defined(_sigargs) /* Irix 5.x, not 6.x */ \ - || defined(HURD) || defined(NETBSD) || defined(FREEBSD) + || defined(HPUX) || defined(HURD) || defined(NETBSD) \ + || defined(FREEBSD) /* Under Irix 5.x or HP/UX, we may get SIGBUS. */ /* Pthreads doesn't exist under Irix 5.x, so we */ /* don't have to worry in the threads case. */ @@ -904,7 +905,8 @@ GC_INNER size_t GC_page_size = 0; || defined(HURD) || defined(FREEBSD) || defined(NETBSD) (void) sigaction(SIGSEGV, &old_segv_act, 0); # if defined(IRIX5) && defined(_sigargs) /* Irix 5.x, not 6.x */ \ - || defined(HURD) || defined(NETBSD) + || defined(HPUX) || defined(HURD) || defined(NETBSD) \ + || defined(FREEBSD) (void) sigaction(SIGBUS, &old_bus_act, 0); # endif # else |