app-accessibility/emacspeak-ss: add missing includes

Fixes implicit function declarations

Closes: https://bugs.gentoo.org/875479
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40561
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NHOrus
2025-02-14 00:23:15 +04:00
committed by Sam James
parent f7dc0f46a1
commit 5374db6889
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Adds support for several speech synthesizers to emacspeak"
HOMEPAGE="http://leb.net/blinux/"
SRC_URI="http://leb.net/pub/blinux/emacspeak/blinux/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
RDEPEND=">=app-accessibility/emacspeak-18"
PATCHES=(
"${FILESDIR}"/gentoo-apollo-fix.patch
"${FILESDIR}"/"${P}"-missing-includes.patch
)
src_prepare() {
default
tc-export CC
}
src_install() {
emake \
prefix="${ED}"/usr \
man1dir="${ED}"/usr/share/man/man1 \
install
dodoc CREDITS ChangeLog OtherSynthesizers TODO TROUBLESHOOTING README*
}

View File

@@ -0,0 +1,13 @@
Add missing includes for implicitly declared functions
https://bugs.gentoo.org/875479
--- a/ping-apollo.c 2025-02-14 00:18:28.905559670 +0400
+++ b/ping-apollo.c 2025-02-14 00:19:59.617012294 +0400
@@ -9,6 +9,8 @@
#include <sys/time.h>
#include <unistd.h>
#include <linux/serial.h>
+#include <stdlib.h>
+#include <string.h>
#define DEFAULT_DEVICE "/dev/ttyS0"
#define MAXCHARS 128