[Lldb-commits] [lldb] r191387 - NetBSD also has a size field in socket addresses.
Joerg Sonnenberger
joerg at bec.de
Wed Sep 25 10:56:00 PDT 2013
Author: joerg
Date: Wed Sep 25 12:56:00 2013
New Revision: 191387
URL: http://llvm.org/viewvc/llvm-project?rev=191387&view=rev
Log:
NetBSD also has a size field in socket addresses.
Modified:
lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
Modified: lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConnectionFileDescriptor.cpp?rev=191387&r1=191386&r2=191387&view=diff
==============================================================================
--- lldb/trunk/source/Core/ConnectionFileDescriptor.cpp (original)
+++ lldb/trunk/source/Core/ConnectionFileDescriptor.cpp Wed Sep 25 12:56:00 2013
@@ -1201,7 +1201,7 @@ ConnectionFileDescriptor::NamedSocketAcc
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::NamedSocketCon
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
More information about the lldb-commits
mailing list