Use getwd(0) on FreeBSD as on OS X.
authorEd Maste <emaste@freebsd.org>
Thu, 5 Sep 2013 17:05:37 +0000 (17:05 +0000)
committerEd Maste <emaste@freebsd.org>
Thu, 5 Sep 2013 17:05:37 +0000 (17:05 +0000)
llvm-svn: 190070

lldb/test/api/multithreaded/common.h

index 74c5eb3..a943f28 100644 (file)
@@ -58,7 +58,7 @@ public:
 
 /// Allocates a char buffer with the current working directory on Linux/Darwin
 inline char* get_working_dir() {
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
     return getwd(0);
 #else
     return get_current_dir_name();