Mesa (master): util: Also include endian.h on cygwin
Jon TURNEY
jturney at kemper.freedesktop.org
Wed Nov 29 14:05:25 UTC 2017
Module: Mesa
Branch: master
Commit: 2c62ccb10a7f3a2962f51688a3ae957254c5ce9b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c62ccb10a7f3a2962f51688a3ae957254c5ce9b
Author: Jon Turney <jon.turney at dronecode.org.uk>
Date: Mon Nov 27 13:32:53 2017 +0000
util: 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 at dronecode.org.uk>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
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 50f94c578e..22d011ec00 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
More information about the mesa-commit
mailing list