pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/got-portable



Module Name:    pkgsrc
Committed By:   vins
Date:           Sat Jan  7 00:01:33 UTC 2023

Modified Files:
        pkgsrc/devel/got-portable: distinfo
Added Files:
        pkgsrc/devel/got-portable/patches: patch-compat_strndup.c

Log Message:
devel/got-portable: define strdup for platforms that are missing it.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/got-portable/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/got-portable/patches/patch-compat_strndup.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/got-portable/distinfo
diff -u pkgsrc/devel/got-portable/distinfo:1.2 pkgsrc/devel/got-portable/distinfo:1.3
--- pkgsrc/devel/got-portable/distinfo:1.2      Tue Dec 20 08:58:20 2022
+++ pkgsrc/devel/got-portable/distinfo  Sat Jan  7 00:01:32 2023
@@ -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

Added files:

Index: pkgsrc/devel/got-portable/patches/patch-compat_strndup.c
diff -u /dev/null pkgsrc/devel/got-portable/patches/patch-compat_strndup.c:1.1
--- /dev/null   Sat Jan  7 00:01:33 2023
+++ pkgsrc/devel/got-portable/patches/patch-compat_strndup.c    Sat Jan  7 00:01:32 2023
@@ -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