Use getwd(0) on FreeBSD as on OS X.

llvm-svn: 190070
This commit is contained in:
Ed Maste 2013-09-05 17:05:37 +00:00
parent 51d2191316
commit 2a1eb4318d
1 changed files with 1 additions and 1 deletions

View 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();