Fix build on pmax/1.4.x. Closes pkg/15201.

This commit is contained in:
wiz 2002-07-31 14:28:32 +00:00
parent a6a9f89098
commit 91094709a0
2 changed files with 26 additions and 1 deletions

View file

@ -1,8 +1,9 @@
$NetBSD: distinfo,v 1.5 2001/09/08 00:36:09 kei Exp $
$NetBSD: distinfo,v 1.6 2002/07/31 14:28:32 wiz Exp $
SHA1 (gc6.0.tar.gz) = 9698826b33472b314d7b2eb640c1669ce05f5277
Size (gc6.0.tar.gz) = 562188 bytes
SHA1 (patch-aa) = e8558979454b3cff1f53b991648309ae0145080c
SHA1 (patch-ab) = d6ef904226912a321220d06916b01a1f2fe10af1
SHA1 (patch-ac) = 38b22813cf2861dcbc9739d70f9fefe69acf3210
SHA1 (patch-ad) = 66cdc0fdbf78c527b3fccfa54895a5f06d482268
SHA1 (patch-ai) = aabb71b2e064d033290e595fa6addc9b779add15

View file

@ -0,0 +1,24 @@
$NetBSD: patch-ab,v 1.7 2002/07/31 14:28:32 wiz Exp $
--- dyn_load.c.orig Tue Jun 26 04:37:38 2001
+++ dyn_load.c Wed Jul 31 15:57:28 2002
@@ -426,9 +426,19 @@
#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
#include <link.h>
/* Newer versions of Linux/Alpha and Linux/x86 define this macro. We