summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-03-21 17:04:06 +0000
committerEric Engestrom <[email protected]>2018-03-23 11:44:21 +0000
commitcbee1bfb34274668a05995b9d4c78ddec9e5ea4c (patch)
treedad1c9037de2c77cc57dd5c5c531169f7174798b /src/util
parentee2b943fa85755fe2565f12c625e41cd08a826f9 (diff)
meson/configure: detect endian.h instead of trying to guess when it's available
Cc: Maxin B. John <[email protected]> Cc: Khem Raj <[email protected]> Cc: Rob Herring <[email protected]> Suggested-by: Jon Turney <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/u_endian.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_endian.h b/src/util/u_endian.h
index 22d011ec008..e11b381588d 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) || defined(__CYGWIN__)
+#ifdef HAVE_ENDIAN_H
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN