[Lldb-commits] [PATCH] D12485: NetBSD ships with paccept(2), a superset of accept4(2)
Kamil Rytarowski via lldb-commits
lldb-commits at lists.llvm.org
Sun Aug 30 14:49:39 PDT 2015
krytarowski created this revision.
krytarowski added a reviewer: joerg.
krytarowski added a subscriber: lldb-commits.
krytarowski set the repository for this revision to rL LLVM.
accept4(2) and paccept(2) are nonstandard extensions.
Repository:
rL LLVM
http://reviews.llvm.org/D12485
Files:
source/Host/common/Socket.cpp
Index: source/Host/common/Socket.cpp
===================================================================
--- source/Host/common/Socket.cpp
+++ source/Host/common/Socket.cpp
@@ -93,7 +93,11 @@
if (!child_processes_inherit) {
flags |= SOCK_CLOEXEC;
}
+#if defined(__NetBSD__)
+ return ::paccept (sockfd, addr, addrlen, NULL, flags);
+#else
return ::accept4 (sockfd, addr, addrlen, flags);
+#endif
#else
return ::accept (sockfd, addr, addrlen);
#endif
@@ -790,5 +794,3 @@
}
return "";
}
-
-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12485.33548.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150830/1ee0970b/attachment.bin>
More information about the lldb-commits
mailing list