Acked-by: Brian Paul <brianp@vmware.com>
# 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
#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;