Sat Jan 7 00:01:33 2023 UTC ()
devel/got-portable: define strdup for platforms that are missing it.


(vins)
diff -r1.2 -r1.3 pkgsrc/devel/got-portable/distinfo
diff -r0 -r1.1 pkgsrc/devel/got-portable/patches/patch-compat_strndup.c

cvs diff -r1.2 -r1.3 pkgsrc/devel/got-portable/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/got-portable/distinfo 2022/12/20 08:58:20 1.2
+++ pkgsrc/devel/got-portable/distinfo 2023/01/07 00:01:32 1.3
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.2 2022/12/20 08:58:20 vins Exp $ 1$NetBSD: distinfo,v 1.3 2023/01/07 00:01:32 vins Exp $
2 2
3BLAKE2s (got-portable-0.79.tar.gz) = c2f184ccfd2cd291681e2f63c9f66d53780806b4b42b5591e26ae292ba768a83 3BLAKE2s (got-portable-0.79.tar.gz) = c2f184ccfd2cd291681e2f63c9f66d53780806b4b42b5591e26ae292ba768a83
4SHA512 (got-portable-0.79.tar.gz) = 842281a1f4de05efc8f6af94a6b05f6d9b84cb399a5088f00a243bc52b3b52e634495762fc49d8fd733afe9299e027451de8a6c797e743cf4e1085ebd394cce1 4SHA512 (got-portable-0.79.tar.gz) = 842281a1f4de05efc8f6af94a6b05f6d9b84cb399a5088f00a243bc52b3b52e634495762fc49d8fd733afe9299e027451de8a6c797e743cf4e1085ebd394cce1
5Size (got-portable-0.79.tar.gz) = 869926 bytes 5Size (got-portable-0.79.tar.gz) = 869926 bytes
 6SHA1 (patch-compat_strndup.c) = cd85ed05c64e59ff8434ca10b4d1e50e601936cb

File Added: pkgsrc/devel/got-portable/patches/Attic/patch-compat_strndup.c
$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)
 {