summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/binder/MemoryHeapIon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/binder/MemoryHeapIon.cpp b/libs/binder/MemoryHeapIon.cpp
index c547395dc..34db5455b 100644
--- a/libs/binder/MemoryHeapIon.cpp
+++ b/libs/binder/MemoryHeapIon.cpp
@@ -84,8 +84,10 @@ uint32_t ion_FlagMask_valid_check(uint32_t flags)
result |= ION_FLAG_CACHED_NEEDS_SYNC;
if (flag_mask & MHB_ION_FLAG_PRESERVE_KMAP)
result |= ION_FLAG_PRESERVE_KMAP;
+#ifdef ION_EXYNOS_VIDEO_MASK
if (flag_mask & MHB_ION_EXYNOS_VIDEO_MASK)
result |= ION_EXYNOS_VIDEO_MASK;
+#endif
if (flag_mask & MHB_ION_EXYNOS_MFC_INPUT_MASK)
result |= ION_EXYNOS_MFC_INPUT_MASK;
if (flag_mask & MHB_ION_EXYNOS_MFC_OUTPUT_MASK)