pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libuv



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.

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



Home | Main Index | Thread Index | Old Index