diff options
| author | Zachary Turner <zturner@google.com> | 2014-08-06 18:16:26 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-08-06 18:16:26 +0000 |
| commit | 98688922b7b3cb36a52d07b22a1783482ca76a50 (patch) | |
| tree | 06a5943fd63759881f33d644e9400e8111287f0d /lldb/tools/lldb-platform/lldb-platform.cpp | |
| parent | 413297c53d13a05353fc940cf00ae83ee7f89dbf (diff) | |
| download | bcm5719-llvm-98688922b7b3cb36a52d07b22a1783482ca76a50.tar.gz bcm5719-llvm-98688922b7b3cb36a52d07b22a1783482ca76a50.zip | |
Creates a socket host object.
This patch moves the logic of many common socket operations into
its own class lldb_private::Socket. It then modifies the
ConnectionFileDescriptor class, and a few users of that class,
to use this new Socket class instead of hardcoding socket logic
directly.
Finally, this patch creates a common interface called IOObject for
any objects that support reading and writing, so that endpoints
such as sockets and files can be treated the same.
Differential Revision: http://reviews.llvm.org/D4641
Reviewed by: Todd Fiala, Greg Clayton
llvm-svn: 214984
Diffstat (limited to 'lldb/tools/lldb-platform/lldb-platform.cpp')
| -rw-r--r-- | lldb/tools/lldb-platform/lldb-platform.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/tools/lldb-platform/lldb-platform.cpp b/lldb/tools/lldb-platform/lldb-platform.cpp index 96aa0fb63a4..0ab292aa4af 100644 --- a/lldb/tools/lldb-platform/lldb-platform.cpp +++ b/lldb/tools/lldb-platform/lldb-platform.cpp @@ -11,7 +11,9 @@ // C Includes #include <errno.h> -#include "lldb/Host/HostGetOpt.h" +#if defined(__APPLE__) +#include <netinet/in.h> +#endif #include <signal.h> #include <stdint.h> #include <stdio.h> @@ -27,6 +29,7 @@ #include "lldb/Core/ConnectionMachPort.h" #include "lldb/Core/Debugger.h" #include "lldb/Core/StreamFile.h" +#include "lldb/Host/HostGetOpt.h" #include "lldb/Host/OptionParser.h" #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" |

