diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-12 10:00:45 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-13 10:00:59 -0800 |
commit | 3011d55f725e280fe29a49bd70a2e0157587b17a (patch) | |
tree | 1a95b4a52cbc617a0cf5f84a2c35912366efa1a0 /lldb/source/Host/common/TCPSocket.cpp | |
parent | 40d72134fd341c79397ec1a57cc6dfd11fd1acc5 (diff) | |
download | bcm5719-llvm-3011d55f725e280fe29a49bd70a2e0157587b17a.tar.gz bcm5719-llvm-3011d55f725e280fe29a49bd70a2e0157587b17a.zip |
[lldb/Host] Use cmakedefine01 for LLDB_ENABLE_POSIX
Rename LLDB_DISABLE_POSIX to LLDB_ENABLE_POSIX and use cmakedefine01 for
consistency.
Diffstat (limited to 'lldb/source/Host/common/TCPSocket.cpp')
-rw-r--r-- | lldb/source/Host/common/TCPSocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/TCPSocket.cpp b/lldb/source/Host/common/TCPSocket.cpp index 8be0b2e2fc0..b716935db6e 100644 --- a/lldb/source/Host/common/TCPSocket.cpp +++ b/lldb/source/Host/common/TCPSocket.cpp @@ -20,7 +20,7 @@ #include "llvm/Support/Errno.h" #include "llvm/Support/raw_ostream.h" -#ifndef LLDB_DISABLE_POSIX +#if LLDB_ENABLE_POSIX #include <arpa/inet.h> #include <netinet/tcp.h> #include <sys/socket.h> @@ -273,7 +273,7 @@ Status TCPSocket::Accept(Socket *&conn_socket) { // Loop until we are happy with our connection while (!accept_connection) { accept_loop.Run(); - + if (error.Fail()) return error; |