pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-git: Support accept4(2) on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Feb 23 10:04:17 2017 +0100
Changeset:	953e6f407af6ff93688febd1958722f5c75019d1

Modified Files:
	lldb-git/distinfo
Added Files:
	lldb-git/patches/patch-source_Host_common_Socket.cpp

Log Message:
lldb-git: Support accept4(2) on NetBSD

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=953e6f407af6ff93688febd1958722f5c75019d1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-git/distinfo                                    |  1 +
 lldb-git/patches/patch-source_Host_common_Socket.cpp | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diffs:
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index d1207eab0a..57165514ea 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -12,4 +12,5 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-source_Host_common_Socket.cpp) = ca346f85b393f309d526bb2a55a072d1d0455a5b
 SHA1 (patch-source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.cpp) = 755266e51d86bc697ba828818fdbd117d6193318
diff --git a/lldb-git/patches/patch-source_Host_common_Socket.cpp b/lldb-git/patches/patch-source_Host_common_Socket.cpp
new file mode 100644
index 0000000000..5a6e8f5c1e
--- /dev/null
+++ b/lldb-git/patches/patch-source_Host_common_Socket.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- source/Host/common/Socket.cpp.orig	2017-02-02 23:56:41.000000000 +0000
++++ source/Host/common/Socket.cpp
+@@ -443,11 +443,7 @@ NativeSocket Socket::AcceptSocket(Native
+   if (!child_processes_inherit) {
+     flags |= SOCK_CLOEXEC;
+   }
+-#if defined(__NetBSD__)
+-  NativeSocket fd = ::paccept(sockfd, addr, addrlen, nullptr, flags);
+-#else
+   NativeSocket fd = ::accept4(sockfd, addr, addrlen, flags);
+-#endif
+ #else
+   NativeSocket fd = ::accept(sockfd, addr, addrlen);
+ #endif


Home | Main Index | Thread Index | Old Index