summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-17 15:02:35 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-17 15:02:35 +0300
commit115fa9ab95b0f69995cadb71fca4eee397b8c3df (patch)
treed8dafd46581e907e6d533cdb941c60cebc76dd12
parentf626d07eb3885bd5f766f2ef7aadf2d78f373f47 (diff)
downloadbinutils-115fa9ab95b0f69995cadb71fca4eee397b8c3df.tar.gz
Add debian/patches/dyson-libctf-endian.patch
-rw-r--r--debian/patches/dyson-libctf-endian.patch13
-rw-r--r--debian/patches/series1
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/dyson-libctf-endian.patch b/debian/patches/dyson-libctf-endian.patch
new file mode 100644
index 0000000..a8cc1ea
--- /dev/null
+++ b/debian/patches/dyson-libctf-endian.patch
@@ -0,0 +1,13 @@
+Index: binutils.git/libctf/ctf-endian.h
+===================================================================
+--- binutils.git.orig/libctf/ctf-endian.h
++++ binutils.git/libctf/ctf-endian.h
+@@ -32,6 +32,8 @@
+ # define htole64(x) bswap_64 ((x))
+ # define le64toh(x) bswap_64 ((x))
+ #endif /* WORDS_BIGENDIAN */
++#else
++# include <endian.h>
+ #endif /* !defined(HAVE_ENDIAN_H) */
+
+ #endif /* !defined(_CTF_ENDIAN_H) */
diff --git a/debian/patches/series b/debian/patches/series
index 6b85d81..9c833d2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -39,3 +39,4 @@ dyson-biarch.patch
dyson-pr14493-sol2.patch
dyson-ld_altexec.patch
dyson-pr12548-anonymous-version-tag.patch
+dyson-libctf-endian.patch