util: Also include endian.h on cygwin
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 27 Nov 2017 13:32:53 +0000 (13:32 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 29 Nov 2017 14:04:40 +0000 (14:04 +0000)
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>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/u_endian.h

index 50f94c578edef278f223e3e625745d1acf3c2fde..22d011ec0086ee77e11cdaa7c3249f16a86d348f 100644 (file)
@@ -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