summaryrefslogtreecommitdiff
path: root/devel/elfsh/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'devel/elfsh/patches/patch-ad')
-rw-r--r--devel/elfsh/patches/patch-ad14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/elfsh/patches/patch-ad b/devel/elfsh/patches/patch-ad
new file mode 100644
index 00000000000..67ab31a0e55
--- /dev/null
+++ b/devel/elfsh/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1 2010/03/17 15:32:18 joerg Exp $
+
+--- libelfsh/include/libelfsh-compat.h.orig 2010-03-17 15:23:59.000000000 +0000
++++ libelfsh/include/libelfsh-compat.h
+@@ -38,6 +38,9 @@
+ /* Portability Stuffs */
+ #if defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <sys/exec_elf.h>
++# if defined(__NetBSD__) && defined(__x86_64__)
++# include <i386/elf_machdep.h>
++# endif
+ #elif defined(__linux__) || defined(__FreeBSD__) || defined(sun)
+ #include <elf.h>
+ #endif