u_endian: add android to glibc clause
authorDave Airlie <airlied@redhat.com>
Mon, 12 Sep 2016 01:21:29 +0000 (11:21 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 13 Sep 2016 00:04:13 +0000 (10:04 +1000)
Tested-by: Mauro Rossi <issor.oruam@gmail.com>
src/util/u_endian.h

index aae3e5a958fc1931da296caf07c96550c70c3fae..b9d563dd4353c34a206d13971d814fee7911dae2 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef U_ENDIAN_H
 #define U_ENDIAN_H
 
-#ifdef __GLIBC__
+#if defined(__GLIBC__) || defined(ANDROID)
 #include <endian.h>
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN