aboutsummaryrefslogtreecommitdiff
path: root/devel/libdwarf
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2011-06-18 12:48:43 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2011-06-18 12:48:43 +0000
commit3d75624bf9ddd6680c7e87c0a5d8f26adffeef5c (patch)
treed113cc954fc1c0ca417e9148e364c10963bd3033 /devel/libdwarf
parent652523ebbba671c55d817c5e915154f569ecc375 (diff)
downloadports-3d75624bf9ddd6680c7e87c0a5d8f26adffeef5c.tar.gz
ports-3d75624bf9ddd6680c7e87c0a5d8f26adffeef5c.zip
Notes
Diffstat (limited to 'devel/libdwarf')
-rw-r--r--devel/libdwarf/files/patch-pro_util.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/devel/libdwarf/files/patch-pro_util.h b/devel/libdwarf/files/patch-pro_util.h
index 292f8f7370ef..67478561ef56 100644
--- a/devel/libdwarf/files/patch-pro_util.h
+++ b/devel/libdwarf/files/patch-pro_util.h
@@ -1,11 +1,23 @@
---- pro_util.h.orig 2011-06-18 08:45:01.000000000 +0200
-+++ pro_util.h 2011-06-18 08:45:50.000000000 +0200
-@@ -120,7 +120,7 @@
+--- pro_util.h.orig 2011-06-18 08:46:00.000000000 +0200
++++ pro_util.h 2011-06-18 14:45:59.000000000 +0200
+@@ -34,6 +34,9 @@
+
+ */
+
++#if defined(__FreeBSD__)
++# include <osreldate.h>
++#endif
+
+
+
+@@ -120,7 +123,9 @@
#define Get_REL_SEGREL_isa(dbg) (R_386_NONE) /* I don't know! */
#endif /* sparc || i386 */
#else /* !sun */
-#ifdef HAVE_SYS_IA64_ELF_H
-+#if defined(HAVE_SYS_IA64_ELF_H) || defined(__FreeBSD__)
++#if defined(HAVE_SYS_IA64_ELF_H) ||\
++ /* FreeBSD 7.x and above always have these */ \
++ (defined(__FreeBSD__) && __FreeBSD_version > 700000)
#define Get_REL64_isa(dbg) (ISA_IA64(dbg) ? \
DWARF_PRO_R_IA64_DIR64LSB : R_MIPS_64)
#define Get_REL32_isa(dbg) (ISA_IA64(dbg) ? \