[Lldb-commits] [lldb] r212255 - Fix compilation errors introduced by host Pipe abstraction

Zachary Turner zturner at google.com
Wed Jul 2 22:20:29 PDT 2014


Author: zturner
Date: Thu Jul  3 00:20:28 2014
New Revision: 212255

URL: http://llvm.org/viewvc/llvm-project?rev=212255&view=rev
Log:
Fix compilation errors introduced by host Pipe abstraction
on Windows.

Modified:
    lldb/trunk/source/Host/common/Pipe.cpp

Modified: lldb/trunk/source/Host/common/Pipe.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Pipe.cpp?rev=212255&r1=212254&r2=212255&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Pipe.cpp (original)
+++ lldb/trunk/source/Host/common/Pipe.cpp Thu Jul  3 00:20:28 2014
@@ -9,12 +9,11 @@
 
 #include "lldb/Host/Pipe.h"
 
-#include <unistd.h>
-
-#ifdef _WIN32
+#if defined(_WIN32)
 #include <io.h>
-#include <math.h>   // TODO: not sure if this is needed for windows, remove if not
-#include <process.h>// TODO: not sure if this is needed for windows, remove if not
+#include <fcntl.h>
+#else
+#include <unistd.h>
 #endif
 
 using namespace lldb_private;
@@ -42,7 +41,7 @@ Pipe::Open()
 
 #ifdef _WIN32
     if (::_pipe(m_fds, 256, O_BINARY) == 0)
-        return true
+        return true;
 #else
     if (::pipe(m_fds) == 0)
         return true;





More information about the lldb-commits mailing list