| From 916244e4bb3c43b91a848c15e3e3bca30f549822 Mon Sep 17 00:00:00 2001 |
| From: Yu Kang Ku <yu.kang.ku@intel.com> |
| Date: Thu, 8 Oct 2020 09:41:24 -0700 |
| Subject: [PATCH] Disable IPC usage |
| |
| This allows iHD to be used within the Chrome OS sandbox. |
| |
| Change-Id: I7c9d438ab7072bbeb35b295a624b71e310ade6f7 |
| Signed-off-by: Yu Kang Ku <yu.kang.ku@intel.com> |
| --- |
| media_driver/linux/common/os/mos_context_specific.cpp | 2 ++ |
| media_driver/linux/common/os/mos_os_specific.c | 2 ++ |
| 2 files changed, 4 insertions(+) |
| |
| diff --git a/media_driver/linux/common/os/mos_context_specific.cpp b/media_driver/linux/common/os/mos_context_specific.cpp |
| index 0b00e407..babdbdea 100644 |
| --- a/media_driver/linux/common/os/mos_context_specific.cpp |
| +++ b/media_driver/linux/common/os/mos_context_specific.cpp |
| @@ -32,6 +32,8 @@ |
| #include "hwinfo_linux.h" |
| #include <stdlib.h> |
| |
| +#define ANDROID 1 |
| + |
| #ifndef ANDROID |
| #include <sys/ipc.h> |
| #include <sys/shm.h> |
| diff --git a/media_driver/linux/common/os/mos_os_specific.c b/media_driver/linux/common/os/mos_os_specific.c |
| index 6228d06d..882b5b50 100644 |
| --- a/media_driver/linux/common/os/mos_os_specific.c |
| +++ b/media_driver/linux/common/os/mos_os_specific.c |
| @@ -50,6 +50,8 @@ |
| #endif // MOS_MEDIASOLO_SUPPORTED |
| #include "mos_solo_generic.h" |
| |
| +#define ANDROID 1 |
| + |
| #ifndef ANDROID |
| #include <sys/ipc.h> |
| #include <sys/shm.h> |
| -- |
| 2.17.1 |
| |