Skip to content
Snippets Groups Projects
Commit 8cbf01f1 authored by Alexander von Gluck's avatar Alexander von Gluck
Browse files

gallium/aux: Fill in Haiku get process name code


Acked-by: default avatarBrian Paul <brianp@vmware.com>
parent 82c23dd9
No related branches found
No related tags found
Loading
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment