From 8cbf01f12a1a0e1052386c13d7db1554f5df9d8d Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 18 Aug 2014 21:01:48 +0000 Subject: gallium/aux: Fill in Haiku get process name code Acked-by: Brian Paul --- src/gallium/auxiliary/os/os_process.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c index 3e060b969b6..a6262283d87 100644 --- a/src/gallium/auxiliary/os/os_process.c +++ b/src/gallium/auxiliary/os/os_process.c @@ -36,6 +36,9 @@ # include #elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) # include +#elif defined(PIPE_OS_HAIKU) +# include +# include #else #warning unexpected platform in os_process.c #endif @@ -73,6 +76,10 @@ os_get_process_name(char *procname, size_t size) #elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) /* *BSD and OS X */ name = getprogname(); +#elif defined(PIPE_OS_HAIKU) + image_info info; + get_image_info(B_CURRENT_TEAM, &info); + name = info.name; #else #warning unexpected platform in os_process.c return FALSE; -- cgit v1.2.3