[Lldb-commits] [lldb] r190070 - Use getwd(0) on FreeBSD as on OS X.
Ed Maste
emaste at freebsd.org
Thu Sep 5 10:05:37 PDT 2013
Author: emaste
Date: Thu Sep 5 12:05:37 2013
New Revision: 190070
URL: http://llvm.org/viewvc/llvm-project?rev=190070&view=rev
Log:
Use getwd(0) on FreeBSD as on OS X.
Modified:
lldb/trunk/test/api/multithreaded/common.h
Modified: lldb/trunk/test/api/multithreaded/common.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multithreaded/common.h?rev=190070&r1=190069&r2=190070&view=diff
==============================================================================
--- lldb/trunk/test/api/multithreaded/common.h (original)
+++ lldb/trunk/test/api/multithreaded/common.h Thu Sep 5 12:05:37 2013
@@ -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();
More information about the lldb-commits
mailing list