diff options
author | rillig <rillig@pkgsrc.org> | 2007-10-17 21:49:17 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-10-17 21:49:17 +0000 |
commit | 0082e66ac264ca2bc7f48b8af3bf09fd50a5571a (patch) | |
tree | a5785b0a5f883023dbef0c08ad6c5218a5661b3a /audio/tosha | |
parent | ac3ded75ceb42e1d4bc4cecc4c42f055f8849ab3 (diff) | |
download | pkgsrc-0082e66ac264ca2bc7f48b8af3bf09fd50a5571a.tar.gz |
NetBSD already has strndup.
Diffstat (limited to 'audio/tosha')
-rw-r--r-- | audio/tosha/distinfo | 4 | ||||
-rw-r--r-- | audio/tosha/patches/patch-ag | 20 | ||||
-rw-r--r-- | audio/tosha/patches/patch-ah | 14 |
3 files changed, 37 insertions, 1 deletions
diff --git a/audio/tosha/distinfo b/audio/tosha/distinfo index 3c62f4118f2..84c11e719c8 100644 --- a/audio/tosha/distinfo +++ b/audio/tosha/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2006/06/24 08:37:40 rillig Exp $ +$NetBSD: distinfo,v 1.6 2007/10/17 21:49:17 rillig Exp $ SHA1 (tosha-0.05.tar.gz) = b567f452843b544b082c88403d74ad1ca07f6820 RMD160 (tosha-0.05.tar.gz) = 21ed9253b020efba1035febe86080a2bd8cc04da @@ -7,3 +7,5 @@ SHA1 (patch-aa) = 10e3bff1ce1859e0389f39e4042960c0a61ca2b7 SHA1 (patch-ab) = 9b4b43d6cb0fe2871cfd0e7e76ffdbd19123573a SHA1 (patch-ac) = 26feb1151d4fb02c5831762447c7bb264517f4d6 SHA1 (patch-af) = 4a1debd7dec8eaa6e2cae2dc33c8ec1aecbfc736 +SHA1 (patch-ag) = 594eca739420fca1812486c0572492af7399429a +SHA1 (patch-ah) = 6d31675bf98220fc98300dbd871330b458c97e4d diff --git a/audio/tosha/patches/patch-ag b/audio/tosha/patches/patch-ag new file mode 100644 index 00000000000..f80aede00b9 --- /dev/null +++ b/audio/tosha/patches/patch-ag @@ -0,0 +1,20 @@ +$NetBSD: patch-ag,v 1.4 2007/10/17 21:49:17 rillig Exp $ + +--- utils.c.orig 1997-05-21 00:12:35.000000000 +0000 ++++ utils.c 2007-10-17 21:47:50.000000000 +0000 +@@ -56,6 +56,7 @@ void *tmalloc (size_t size) + return (mem); + } + ++#if !defined(__NetBSD__) + char *strndup (char *src, int num) + { + char *dst; +@@ -65,6 +66,7 @@ char *strndup (char *src, int num) + dst[num] = '\0'; + return (strncpy(dst, src, num)); + } ++#endif + + char *justify (char *str) + { diff --git a/audio/tosha/patches/patch-ah b/audio/tosha/patches/patch-ah new file mode 100644 index 00000000000..8257294d009 --- /dev/null +++ b/audio/tosha/patches/patch-ah @@ -0,0 +1,14 @@ +$NetBSD: patch-ah,v 1.1 2007/10/17 21:49:17 rillig Exp $ + +--- utils.h.orig 1997-05-21 00:13:22.000000000 +0000 ++++ utils.h 2007-10-17 21:47:24.000000000 +0000 +@@ -59,7 +59,9 @@ void *tmalloc (size_t size); + * allocated. + */ + ++#if !defined(__NetBSD__) + char *strndup (char *src, int num); ++#endif + /* + * Like strdup(), but limits the string length to at most + * <num> characters (not counting the terminating zero). |