File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ const file_t kInvalidFile = -1;
129
129
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
130
130
defined (__FreeBSD_kernel__) || defined(__linux__) || defined(__CYGWIN__) || \
131
131
defined(__DragonFly__) || defined(_AIX) || defined(__GNU__) || \
132
- (defined(__sun__) && defined(__svr4__))
132
+ (defined(__sun__) && defined(__svr4__) || defined(__HAIKU__) )
133
133
static int test_dir(char ret[PATH_MAX], const char *dir, const char *bin) {
134
134
struct stat sb;
135
135
char fullpath[PATH_MAX];
@@ -283,7 +283,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
283
283
// Fall back to the classical detection.
284
284
if (getprogpath (exe_path, argv0))
285
285
return exe_path;
286
- #elif defined(__OpenBSD__)
286
+ #elif defined(__OpenBSD__) || defined(__HAIKU__)
287
287
char exe_path[PATH_MAX];
288
288
// argv[0] only
289
289
if (getprogpath (exe_path, argv0) != NULL )
You can’t perform that action at this time.
0 commit comments