aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2022-02-02 14:28:24 -0800
committerColin Cross <ccross@android.com>2022-02-02 14:31:20 -0800
commitf52fb58e6795aa16985d173b57dd868e1702b1ce (patch)
treebd57fa9cc63db0affac1a8917126b77b700e3f25
parentbdbf71cace3ca42fcbe66cf1d5de0114e4154633 (diff)
downloadlibdrm-android-t-preview-1.tar.gz
ANDROID is set when building in an Android source tree, even when building for the host architecture. Check against __BIONIC__ instead, which is only set when building against Bionic libc. Bug: 190084016 Test: mmma USE_HOST_MUSL=true external/libdrm Change-Id: Ic1e22c32b45195dbed775721436536abd02ae664
-rw-r--r--libdrm_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm_macros.h b/libdrm_macros.h
index 0dca8273..5caaa801 100644
--- a/libdrm_macros.h
+++ b/libdrm_macros.h
@@ -45,7 +45,7 @@
#include <sys/mman.h>
-#if defined(ANDROID) && !defined(__LP64__)
+#if defined(__BIONIC__) && !defined(__LP64__)
#include <errno.h> /* for EINVAL */
static inline void *drm_mmap(void *addr, size_t length, int prot, int flags,