summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-07-05 21:12:58 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-07-27 20:25:20 +0300
commitc396fcdab6f5bfca98660a9019bf35f4056ed8dc (patch)
treed78dfa0406635e6e1c1c13c677343b0cb1685daa
parent8aaf5baf5669c2eddb6d62a39ba98ffb44b7ef27 (diff)
downloadbdwgc-c396fcdab6f5bfca98660a9019bf35f4056ed8dc.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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/os_dep.c b/os_dep.c
index 020c4d82..fcb0fa0f 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -856,7 +856,7 @@ GC_INNER size_t GC_page_size = 0;
|| defined(HAIKU) || 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
@@ -893,7 +893,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. */
@@ -939,7 +940,8 @@ GC_INNER size_t GC_page_size = 0;
|| 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