From d4c6dae5c107ca8352734fe9f55ccad01e1b2b4f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 23 Sep 2016 22:27:03 +0000 Subject: [PATCH] Fix build on Ubuntu. This was in some code that was #ifdef'd out on Windows, so I didn't see it. llvm-svn: 282309 --- lldb/source/Host/common/Host.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index bd85c98..05120f4 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -942,15 +942,15 @@ bool Host::AddPosixSpawnFileAction(void *_file_actions, const FileAction *info, if (oflag & O_CREAT) mode = 0640; - error.SetError( - ::posix_spawn_file_actions_addopen(file_actions, info->GetFD(), - info->GetPath(), oflag, mode), - eErrorTypePOSIX); + error.SetError(::posix_spawn_file_actions_addopen( + file_actions, info->GetFD(), + info->GetPath().str().c_str(), oflag, mode), + eErrorTypePOSIX); if (error.Fail() || log) error.PutToLog(log, "posix_spawn_file_actions_addopen (action=%p, " "fd=%i, path='%s', oflag=%i, mode=%i)", static_cast(file_actions), info->GetFD(), - info->GetPath(), oflag, mode); + info->GetPath().str().c_str(), oflag, mode); } break; } -- 2.7.4