[Mesa-dev] [PATCH v1 3/7] gallium: os_process fixes for Android
Robert Foss
robert.foss at collabora.com
Thu Jun 15 20:47:55 UTC 2017
From: Rob Herring <robh at kernel.org>
Signed-off-by: Rob Herring <robh at kernel.org>
---
src/gallium/auxiliary/os/os_process.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c
index 6622b9b2bc..af5d22bf84 100644
--- a/src/gallium/auxiliary/os/os_process.c
+++ b/src/gallium/auxiliary/os/os_process.c
@@ -34,7 +34,7 @@
# include <windows.h>
#elif defined(__GLIBC__) || defined(__CYGWIN__)
# include <errno.h>
-#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
+#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_ANDROID)
# include <stdlib.h>
#elif defined(PIPE_OS_HAIKU)
# include <kernel/OS.h>
@@ -59,6 +59,7 @@ os_get_process_name(char *procname, size_t size)
{
const char *name;
+
/* First, check if the GALLIUM_PROCESS_NAME env var is set to
* override the normal process name query.
*/
@@ -86,7 +87,7 @@ os_get_process_name(char *procname, size_t size)
#elif defined(__GLIBC__) || defined(__CYGWIN__)
name = program_invocation_short_name;
-#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
+#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_ANDROID)
/* *BSD and OS X */
name = getprogname();
#elif defined(PIPE_OS_HAIKU)
--
2.11.0
More information about the mesa-dev
mailing list