[Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

Chih-Wei Huang cwhuang at android-x86.org
Sun Jun 4 03:31:03 UTC 2017


Android bionic is derived from OpenBSD. So the logics of BSD
almost apply to Android as well.

It fixes the warnings

external/mesa/src/gallium/auxiliary/os/os_process.c:43:2: warning: unexpected platform in os_process.c [-W#warnings]
 ^
external/mesa/src/gallium/auxiliary/os/os_process.c:97:2: warning: unexpected platform in os_process.c [-W#warnings]
 ^
2 warnings generated.

Actually it's the only affected file by the change.

Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
---
 src/gallium/include/pipe/p_config.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index 3fa43ed..0d8e9f7 100644
--- a/src/gallium/include/pipe/p_config.h
+++ b/src/gallium/include/pipe/p_config.h
@@ -158,6 +158,7 @@
  */
 #if defined(ANDROID)
 #define PIPE_OS_ANDROID
+#define PIPE_OS_BSD
 #endif
 
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-- 
1.9.1



More information about the mesa-dev mailing list