net-proxy/havp: fix build with GCC 12

Closes: https://bugs.gentoo.org/855575
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-07-02 21:17:04 +00:00
parent 0f9a010a04
commit 7e853c664f
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
https://bugs.gentoo.org/855575
--- a/havp/logfile.cpp
+++ b/havp/logfile.cpp
@@ -30,6 +30,7 @@
#include <map>
#include <cstdlib>
#include <cstring>
+#include <ctime>
#define LOGSTRINGLENGTH 1000

View File

@@ -22,8 +22,9 @@ RDEPEND="
"
PATCHES=(
"${FILESDIR}"/havp-0.92a-run.patch
"${FILESDIR}"/${P}-run.patch
"${FILESDIR}"/${P}-pkg-config-libclamav.patch
"${FILESDIR}"/${P}-gcc12-time.patch
)
src_prepare() {