summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ConnectionFileDescriptor.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-09-25 17:56:00 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-09-25 17:56:00 +0000
commit34ea0f8a340a3b02394d01d589d1deed497eed97 (patch)
tree69920fb78d3a43cea952ed4e3e41aa075100aaea /lldb/source/Core/ConnectionFileDescriptor.cpp
parent1e0621cea25b1e379f968dd33937aeb95f6a0a91 (diff)
downloadbcm5719-llvm-34ea0f8a340a3b02394d01d589d1deed497eed97.tar.gz
bcm5719-llvm-34ea0f8a340a3b02394d01d589d1deed497eed97.zip
NetBSD also has a size field in socket addresses.
llvm-svn: 191387
Diffstat (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp')
-rw-r--r--lldb/source/Core/ConnectionFileDescriptor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp
index 7d1540537d1..de5ac59e33b 100644
--- a/lldb/source/Core/ConnectionFileDescriptor.cpp
+++ b/lldb/source/Core/ConnectionFileDescriptor.cpp
@@ -1201,7 +1201,7 @@ ConnectionFileDescriptor::NamedSocketAccept (const char *socket_name, Error *err
saddr_un.sun_family = AF_UNIX;
::strncpy(saddr_un.sun_path, socket_name, sizeof(saddr_un.sun_path) - 1);
saddr_un.sun_path[sizeof(saddr_un.sun_path) - 1] = '\0';
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
saddr_un.sun_len = SUN_LEN (&saddr_un);
#endif
@@ -1254,7 +1254,7 @@ ConnectionFileDescriptor::NamedSocketConnect (const char *socket_name, Error *er
saddr_un.sun_family = AF_UNIX;
::strncpy(saddr_un.sun_path, socket_name, sizeof(saddr_un.sun_path) - 1);
saddr_un.sun_path[sizeof(saddr_un.sun_path) - 1] = '\0';
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
saddr_un.sun_len = SUN_LEN (&saddr_un);
#endif
OpenPOWER on IntegriCloud