Received: by mail.netbsd.org (Postfix, from userid 605) id 0ADAB84E3F; Mon, 11 Dec 2017 13:32:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 899CE84DFD for ; Mon, 11 Dec 2017 13:32:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id SUzps-RrcRSw for ; Mon, 11 Dec 2017 13:32:13 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 183FB84D9E for ; Mon, 11 Dec 2017 13:32:13 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 13680FB40; Mon, 11 Dec 2017 13:32:13 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1512999133144800" MIME-Version: 1.0 Date: Mon, 11 Dec 2017 13:32:13 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/devel/libuv To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20171211133213.13680FB40@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1512999133144800 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Mon Dec 11 13:32:13 UTC 2017 Modified Files: pkgsrc/devel/libuv: distinfo Added Files: pkgsrc/devel/libuv/patches: patch-src_unix_darwin.c Log Message: libuv: Provide compat strnlen for older Darwin. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/libuv/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libuv/patches/patch-src_unix_darwin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1512999133144800 Content-Disposition: inline Content-Length: 1889 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/libuv/distinfo diff -u pkgsrc/devel/libuv/distinfo:1.25 pkgsrc/devel/libuv/distinfo:1.26 --- pkgsrc/devel/libuv/distinfo:1.25 Fri Dec 1 09:13:45 2017 +++ pkgsrc/devel/libuv/distinfo Mon Dec 11 13:32:12 2017 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.25 2017/12/01 09:13:45 adam Exp $ +$NetBSD: distinfo,v 1.26 2017/12/11 13:32:12 jperkin Exp $ SHA1 (libuv-1.18.0.tar.gz) = 212fae1ecf12b273d44ce59e1a7c99d88f47da53 RMD160 (libuv-1.18.0.tar.gz) = cae0b72ebc5919d0bdbfc0007f58d6538e40baca @@ -6,6 +6,7 @@ SHA512 (libuv-1.18.0.tar.gz) = d1ef70b0f Size (libuv-1.18.0.tar.gz) = 1167950 bytes SHA1 (patch-autogen.sh) = a5f48189bfb17624c545a80626ea311b7755d232 SHA1 (patch-configure.ac) = e6636d522dc9218fc9aee62846426645473cb6cd +SHA1 (patch-src_unix_darwin.c) = 489f73fe81b9dea2acc72a669bf667c560c1deea SHA1 (patch-src_unix_fs.c) = 21fffa99df9528aedee0c6fe299d28ff5110d2ba SHA1 (patch-src_unix_netbsd.c) = 3386e702e3acc29bba6f3f5f612db728473b2a73 SHA1 (patch-src_unix_thread.c) = 1ae58ceacc721421019c14eed5830c0a6dcf1768 Added files: Index: pkgsrc/devel/libuv/patches/patch-src_unix_darwin.c diff -u /dev/null pkgsrc/devel/libuv/patches/patch-src_unix_darwin.c:1.1 --- /dev/null Mon Dec 11 13:32:13 2017 +++ pkgsrc/devel/libuv/patches/patch-src_unix_darwin.c Mon Dec 11 13:32:12 2017 @@ -0,0 +1,22 @@ +$NetBSD: patch-src_unix_darwin.c,v 1.1 2017/12/11 13:32:12 jperkin Exp $ + +Provide compat strnlen for older Darwin. + +--- src/unix/darwin.c.orig 2017-12-01 02:07:38.000000000 +0000 ++++ src/unix/darwin.c +@@ -229,3 +229,15 @@ void uv_free_cpu_info(uv_cpu_info_t* cpu + + uv__free(cpu_infos); + } ++ ++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__-0 < 1070 ++size_t strnlen(const char* s, size_t maxlen) { ++ size_t len; ++ ++ for (len = 0; len < maxlen; len++, s++) { ++ if (!*s) ++ break; ++ } ++ return (len); ++} ++#endif --_----------=_1512999133144800--