summaryrefslogtreecommitdiff
path: root/devel/boehm-gc/patches/patch-ab
blob: c8eed0b4fccebd0760412a5aa756d006801a68ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ab,v 1.10 2003/05/22 16:46:50 jmmv Exp $

--- dyn_load.c.orig	2003-05-09 03:45:10.000000000 +0200
+++ dyn_load.c	2003-05-14 00:28:16.000000000 +0200
@@ -446,6 +446,16 @@
 
 #if defined(NETBSD)
 #  include <sys/exec_elf.h>
+/* for compatibility with 1.4.x */
+#  ifndef DT_DEBUG
+#  define DT_DEBUG     21
+#  endif
+#  ifndef PT_LOAD
+#  define PT_LOAD      1
+#  endif
+#  ifndef PF_W
+#  define PF_W         2
+#  endif
 #else
 #  include <elf.h>
 #endif