diff options
Diffstat (limited to 'media-sound/shorten')
-rw-r--r-- | media-sound/shorten/files/shorten-3.6.1-modern-c.patch | 15 | ||||
-rw-r--r-- | media-sound/shorten/shorten-3.6.1-r1.ebuild (renamed from media-sound/shorten/shorten-3.6.1.ebuild) | 9 |
2 files changed, 21 insertions, 3 deletions
diff --git a/media-sound/shorten/files/shorten-3.6.1-modern-c.patch b/media-sound/shorten/files/shorten-3.6.1-modern-c.patch new file mode 100644 index 000000000000..a390c3c30d22 --- /dev/null +++ b/media-sound/shorten/files/shorten-3.6.1-modern-c.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/880807 +--- a/src/fixio.c ++++ b/src/fixio.c +@@ -10,9 +10,11 @@ + * $Id: fixio.c,v 1.4 2002/01/28 01:16:52 jason Exp $ + */ + ++#define _XOPEN_SOURCE 600 + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #include "shorten.h" + #include "bitshift.h" + diff --git a/media-sound/shorten/shorten-3.6.1.ebuild b/media-sound/shorten/shorten-3.6.1-r1.ebuild index e05e1cf4f4de..4ad5e7a0b738 100644 --- a/media-sound/shorten/shorten-3.6.1.ebuild +++ b/media-sound/shorten/shorten-3.6.1-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 DESCRIPTION="fast, low complexity waveform coder (i.e. audio compressor)" HOMEPAGE="http://shnutils.freeshell.org/shorten/" @@ -11,4 +11,7 @@ LICENSE="shorten" SLOT="0" KEYWORDS="~alpha amd64 ~ppc sparc x86" -PATCHES=( "${FILESDIR}"/${PN}-tests.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-tests.patch + "${FILESDIR}"/${PN}-3.6.1-modern-c.patch +) |