pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/got-portable devel/got-portable: define strdup f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d00b93313c44
branches: trunk
changeset: 391252:d00b93313c44
user: vins <vins%pkgsrc.org@localhost>
date: Sat Jan 07 00:01:32 2023 +0000
description:
devel/got-portable: define strdup for platforms that are missing it.
diffstat:
devel/got-portable/distinfo | 3 ++-
devel/got-portable/patches/patch-compat_strndup.c | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 911f026eddb8 -r d00b93313c44 devel/got-portable/distinfo
--- a/devel/got-portable/distinfo Fri Jan 06 23:52:59 2023 +0000
+++ b/devel/got-portable/distinfo Sat Jan 07 00:01:32 2023 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2022/12/20 08:58:20 vins Exp $
+$NetBSD: distinfo,v 1.3 2023/01/07 00:01:32 vins Exp $
BLAKE2s (got-portable-0.79.tar.gz) = c2f184ccfd2cd291681e2f63c9f66d53780806b4b42b5591e26ae292ba768a83
SHA512 (got-portable-0.79.tar.gz) = 842281a1f4de05efc8f6af94a6b05f6d9b84cb399a5088f00a243bc52b3b52e634495762fc49d8fd733afe9299e027451de8a6c797e743cf4e1085ebd394cce1
Size (got-portable-0.79.tar.gz) = 869926 bytes
+SHA1 (patch-compat_strndup.c) = cd85ed05c64e59ff8434ca10b4d1e50e601936cb
diff -r 911f026eddb8 -r d00b93313c44 devel/got-portable/patches/patch-compat_strndup.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/got-portable/patches/patch-compat_strndup.c Sat Jan 07 00:01:32 2023 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-compat_strndup.c,v 1.1 2023/01/07 00:01:32 vins Exp $
+
+Provide a declaration of strdup()
+
+--- compat/strndup.c.orig 2022-11-08 21:21:19.000000000 +0000
++++ compat/strndup.c
+@@ -22,6 +22,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++#ifndef HAVE_STRDUP
++extern char* strdup(const char*);
++#endif
++
+ char *
+ strndup(const char *str, size_t maxlen)
+ {
Home |
Main Index |
Thread Index |
Old Index