pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/openobex Don't define accept4 locally on new eno...
details: https://anonhg.NetBSD.org/pkgsrc/rev/493630c4b95d
branches: trunk
changeset: 358647:493630c4b95d
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Feb 17 17:00:30 2017 +0000
description:
Don't define accept4 locally on new enough NetBSD current.
diffstat:
comms/openobex/distinfo | 3 ++-
comms/openobex/patches/patch-lib_cloexec.h | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 37fa1a547a39 -r 493630c4b95d comms/openobex/distinfo
--- a/comms/openobex/distinfo Fri Feb 17 17:00:03 2017 +0000
+++ b/comms/openobex/distinfo Fri Feb 17 17:00:30 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 01:34:56 agc Exp $
+$NetBSD: distinfo,v 1.11 2017/02/17 17:00:30 joerg Exp $
SHA1 (openobex-1.7.1-Source.tar.gz) = b70e10ac21737fd1280cfb4d7408f623118ed355
RMD160 (openobex-1.7.1-Source.tar.gz) = fd06ffd6fd4fd8457c81c300b4e7c790def49f52
SHA512 (openobex-1.7.1-Source.tar.gz) = df38b363bd4c6eb6c0181fc7858fb03ac2bdfa85d8496faaa514d5cc4473b33c883956d4e1c94c3fefa5e44e5eed35a8dfcab889ce6ca8c29694f2b18334754e
Size (openobex-1.7.1-Source.tar.gz) = 131091 bytes
SHA1 (patch-lib_api.c) = 4ea3f2b8179a52a4d1266395a4f20b572582903f
+SHA1 (patch-lib_cloexec.h) = 374794dd6d46b9448b51f98230545afa3cb26ddf
diff -r 37fa1a547a39 -r 493630c4b95d comms/openobex/patches/patch-lib_cloexec.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/openobex/patches/patch-lib_cloexec.h Fri Feb 17 17:00:30 2017 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-lib_cloexec.h,v 1.1 2017/02/17 17:00:30 joerg Exp $
+
+--- lib/cloexec.h.orig 2012-03-26 18:25:19.000000000 +0000
++++ lib/cloexec.h
+@@ -45,12 +45,15 @@ static __inline socket_t socket_cloexec(
+
+ /* This supports an accept4() equivalent on NetBSD 6 and later */
+ #if defined(SOCK_CLOEXEC) && defined(__NetBSD__)
++#include <sys/param.h>
++#if __NetBSD_Version__ < 799005900
+ static __inline int accept4(int s, struct sockaddr * addr, socklen_t *addrlen,
+ int flags)
+ {
+ return paccept(s, addr, addrlen, NULL, flags);
+ }
+ #endif
++#endif
+
+ static __inline socket_t accept_cloexec(socket_t sockfd, struct sockaddr *addr,
+ socklen_t *addrlen)
Home |
Main Index |
Thread Index |
Old Index