games-misc/sex: fix implicit function decls

Closes: https://bugs.gentoo.org/871414
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-09-27 22:51:27 +01:00
parent cf2359d0ff
commit ce74c55992
2 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
From: Sam James <sam@gentoo.org>
Date: Tue, 27 Sep 2022 22:50:12 +0100
Subject: [PATCH] Add missing <string.h> for strcmp
Bug: https://bugs.gentoo.org/871414
--- a/sex.c
+++ b/sex.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <time.h>
#include <ctype.h>

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,9 +15,14 @@ KEYWORDS="~alpha ~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
RDEPEND="!sci-astronomy/sextractor"
PATCHES=(
"${FILESDIR}"/${PN}-1.0-Add-missing-string.h-for-strcmp.patch
)
src_prepare() {
default
rm -f Makefile
rm -f Makefile || die
}
src_compile() {