summaryrefslogtreecommitdiff
path: root/patches/mesa-mesa/0003-Also-include-endian.h-on-cygwin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/mesa-mesa/0003-Also-include-endian.h-on-cygwin.patch')
-rw-r--r--patches/mesa-mesa/0003-Also-include-endian.h-on-cygwin.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/mesa-mesa/0003-Also-include-endian.h-on-cygwin.patch b/patches/mesa-mesa/0003-Also-include-endian.h-on-cygwin.patch
new file mode 100644
index 0000000..9429154
--- /dev/null
+++ b/patches/mesa-mesa/0003-Also-include-endian.h-on-cygwin.patch
@@ -0,0 +1,29 @@
+From e5c6197bdb4dec926ab31534b8533dd1bf14dfa1 Mon Sep 17 00:00:00 2001
+From: Jon Turney <jon.turney@dronecode.org.uk>
+Date: Mon, 27 Nov 2017 13:32:53 +0000
+Subject: [PATCH] Also include endian.h on cygwin
+
+If u_endian.h can't determine the endianess, the default behaviour in sha1.c
+is to build for big-endian
+
+Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
+---
+ src/util/u_endian.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/util/u_endian.h b/src/util/u_endian.h
+index 50f94c578ed..22d011ec008 100644
+--- a/src/util/u_endian.h
++++ b/src/util/u_endian.h
+@@ -27,7 +27,7 @@
+ #ifndef U_ENDIAN_H
+ #define U_ENDIAN_H
+
+-#if defined(__GLIBC__) || defined(ANDROID)
++#if defined(__GLIBC__) || defined(ANDROID) || defined(__CYGWIN__)
+ #include <endian.h>
+
+ #if __BYTE_ORDER == __LITTLE_ENDIAN
+--
+2.15.0
+