pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libuv libuv: Provide compat strnlen for older Da...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9a93df8077c5
branches: trunk
changeset: 372612:9a93df8077c5
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Dec 11 13:32:12 2017 +0000
description:
libuv: Provide compat strnlen for older Darwin.
diffstat:
devel/libuv/distinfo | 3 ++-
devel/libuv/patches/patch-src_unix_darwin.c | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r 3fa1b942672c -r 9a93df8077c5 devel/libuv/distinfo
--- a/devel/libuv/distinfo Mon Dec 11 12:28:09 2017 +0000
+++ b/devel/libuv/distinfo Mon Dec 11 13:32:12 2017 +0000
@@ -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 @@
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
diff -r 3fa1b942672c -r 9a93df8077c5 devel/libuv/patches/patch-src_unix_darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libuv/patches/patch-src_unix_darwin.c Mon Dec 11 13:32:12 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index