aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/os
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2014-08-18 21:01:48 +0000
committerAlexander von Gluck IV <[email protected]>2014-08-19 10:03:05 -0400
commit8cbf01f12a1a0e1052386c13d7db1554f5df9d8d (patch)
tree999f084ed79744e662d6c469f4e2f1e1df3fc613 /src/gallium/auxiliary/os
parent82c23dd9625883f872ae90a00798340229947392 (diff)
gallium/aux: Fill in Haiku get process name code
Acked-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os')
-rw-r--r--src/gallium/auxiliary/os/os_process.c7
1 files changed, 7 insertions, 0 deletions
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 <errno.h>
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
# include <stdlib.h>
+#elif defined(PIPE_OS_HAIKU)
+# include <kernel/OS.h>
+# include <kernel/image.h>
#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;