mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Unbreak after strndup MFC [1]
- Move to PLIST_FILES PR: 132067 Submitted by: Florian Smeets <flo@kasimir.com>
This commit is contained in:
parent
82f095602a
commit
81c6807c61
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229277
4 changed files with 45 additions and 10 deletions
|
@ -18,10 +18,7 @@ COMMENT= Read CD digital audio and video data via the SCSI bus
|
|||
MAN1= pcmfade.1 pcmplay.1 tosha.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
PLIST_FILES= bin/tosha bin/pcmplay \
|
||||
bin/pcmfade etc/tosharc
|
||||
|
||||
.if ${OSVERSION} >= 800058 || (${OSVERSION} >= 701101 && ${OSVERSION} < 800000)
|
||||
BROKEN= does not build
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
21
audio/tosha/files/patch-utils.c
Normal file
21
audio/tosha/files/patch-utils.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- utils.c.orig 2009-02-24 14:41:16.000000000 +0100
|
||||
+++ utils.c 2009-02-24 14:41:55.000000000 +0100
|
||||
@@ -59,6 +59,9 @@
|
||||
return (mem);
|
||||
}
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100
|
||||
char *strndup (char *src, int num)
|
||||
{
|
||||
char *dst;
|
||||
@@ -68,6 +71,8 @@
|
||||
dst[num] = '\0';
|
||||
return (strncpy(dst, src, num));
|
||||
}
|
||||
+#endif
|
||||
+#endif
|
||||
|
||||
char *justify (char *str)
|
||||
{
|
21
audio/tosha/files/patch-utils.h
Normal file
21
audio/tosha/files/patch-utils.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- utils.h.orig 2009-02-24 14:41:21.000000000 +0100
|
||||
+++ utils.h 2009-02-24 14:42:08.000000000 +0100
|
||||
@@ -63,6 +63,9 @@
|
||||
* allocated.
|
||||
*/
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100
|
||||
char *strndup (char *src, int num);
|
||||
/*
|
||||
* Like strdup(), but limits the string length to at most
|
||||
@@ -71,6 +74,8 @@
|
||||
* Always allocates <num>+1 bytes, even if less space would
|
||||
* be sufficient to store <src>.
|
||||
*/
|
||||
+#endif
|
||||
+#endif
|
||||
|
||||
char *justify (char *str);
|
||||
/*
|
|
@ -1,4 +0,0 @@
|
|||
bin/tosha
|
||||
bin/pcmplay
|
||||
bin/pcmfade
|
||||
etc/tosharc
|
Loading…
Add table
Reference in a new issue