summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h b/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h
index a943f28e731..dad8bba07a3 100644
--- a/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h
+++ b/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h
@@ -56,9 +56,9 @@ public:
}
};
-/// Allocates a char buffer with the current working directory on Linux/Darwin
+/// Allocates a char buffer with the current working directory
inline char* get_working_dir() {
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
return getwd(0);
#else
return get_current_dir_name();
OpenPOWER on IntegriCloud