aboutsummaryrefslogtreecommitdiff
path: root/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-08-23 16:49:47 +0000
committerJohn Marino <marino@FreeBSD.org>2016-08-23 16:49:47 +0000
commit6aca1a12ff150be986e9409d6b7d8fcfa205fef8 (patch)
treefd95b80b9528253dcb21353bf41fdae43f30bba8 /devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h
parentce4178000f00b4c025a06e9e110e5be6139df886 (diff)
Notes
Diffstat (limited to 'devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h')
-rw-r--r--devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h b/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h
new file mode 100644
index 000000000000..f6348407ae4b
--- /dev/null
+++ b/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h
@@ -0,0 +1,20 @@
+--- libelfsh/include/libelfsh-compat.h.orig 2003-08-21 01:11:03 UTC
++++ libelfsh/include/libelfsh-compat.h
+@@ -10,7 +10,7 @@
+
+ #if defined(__linux__)
+ #include <endian.h>
+-#elif defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__)
++#elif defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include <machine/endian.h>
+ #elif defined(sun)
+ #define __LITTLE_ENDIAN 1234
+@@ -38,7 +38,7 @@
+ /* Portability Stuffs */
+ #if defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <sys/exec_elf.h>
+-#elif defined(__linux__) || defined(__FreeBSD__) || defined(sun)
++#elif defined(__linux__) || defined(__FreeBSD__) || defined(sun) || defined(__DragonFly__)
+ #include <elf.h>
+ #endif
+