diff options
author | he <he> | 2009-04-17 22:08:44 +0000 |
---|---|---|
committer | he <he> | 2009-04-17 22:08:44 +0000 |
commit | ee4bd9f2ce4853ae5ebecfe2eac0b24637ec115d (patch) | |
tree | 72eb7da7880e71aa9ec008284f4cb53ec431d982 /lang/parrot/patches | |
parent | fc262acecd59fd0fdec31fd5f1e83a0b38b8291e (diff) | |
download | pkgsrc-ee4bd9f2ce4853ae5ebecfe2eac0b24637ec115d.tar.gz |
For the NetBSD/powerpc 3.x case, use the enums out of <powerpc/reloc.h>
instead of literal integers. Again, this should not result in different
code, so no reason to bump revision.
Diffstat (limited to 'lang/parrot/patches')
-rw-r--r-- | lang/parrot/patches/patch-ab | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lang/parrot/patches/patch-ab b/lang/parrot/patches/patch-ab index 31f7532942a..794f21e9c9d 100644 --- a/lang/parrot/patches/patch-ab +++ b/lang/parrot/patches/patch-ab @@ -1,9 +1,9 @@ -$NetBSD: patch-ab,v 1.5 2009/04/17 19:54:39 he Exp $ +$NetBSD: patch-ab,v 1.6 2009/04/17 22:08:44 he Exp $ The R_PPC_ADDR16{HI,LO} constants are named something else on NetBSD, and might be elsewhere. -Also add workarounds for NetBSD/powerpc 3.x, which has a minimal -<powerpc/elf_machdep.h> file. +Also add workarounds for NetBSD/powerpc 3.x, which has some +constants defined as enums. --- src/exec_save.c.orig 2009-03-08 20:32:43.000000000 +0000 +++ src/exec_save.c @@ -19,15 +19,15 @@ Also add workarounds for NetBSD/powerpc 3.x, which has a minimal +#endif +/* + * NetBSD/powerpc 3.x doesn't define these constants, -+ * so add some workarounds for it. ++ * but instead has them as enums, so add some workarounds for it. + */ +#if !defined(R_PPC_ADDR16_HI) && !defined(R_PPC_ADDR16_LO) && \ + defined(__NetBSD__) -+# define R_PPC_ADDR16_HI 5 -+# define R_PPC_ADDR16_LO 4 ++# define R_PPC_ADDR16_HI RELOC_16_HI ++# define R_PPC_ADDR16_LO RELOC_16_LO +#endif +#if !defined(R_PPC_REL24) && defined(__NetBSD__) -+# define R_PPC_REL24 10 ++# define R_PPC_REL24 RELOC_REL24 +#endif +#endif /* PARROT_PPC */ + |