summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthfrwn <11335318+thfrwn@users.noreply.github.com>2018-03-29 08:25:23 -0700
committerIvan Maidanski <ivmai@mail.ru>2018-08-15 22:06:11 +0300
commit327d40623e20a527585ff7bc1639f28ca629c811 (patch)
treeee4bedfb93a4c304277cbc291a9c465ba4b62be2
parentedb626721cfd61f8ad2cbdc3ccb7a885b24eeba4 (diff)
downloadbdwgc-327d40623e20a527585ff7bc1639f28ca629c811.tar.gz
add some OpenBSD patches (#7699)
add some OpenBSD patches Hi, A few trivial additions of OpenBSD to ifdefs, plus the change of the abort signal to SIGUSR1 which fixes the SIGABRT problem (other compilation problems remain). SIGTTIN is broadcast to the process group which leads to the SIGABRT (at least on OpenBSD).
-rw-r--r--dyn_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 963f6e95..c414c878 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -396,7 +396,8 @@ GC_bool GC_register_main_static_data()
# if (defined(LINUX) || defined (__GLIBC__) || defined(NACL)) /* Are others OK here, too? */ \
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) \
+ || defined(OPENBSD)
/* We have the header files for a glibc that includes dl_iterate_phdr. */
/* It may still not be available in the library on the target system. */