mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-admin/passwordsafe: fix build with GCC 12
Closes: https://bugs.gentoo.org/854144 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
https://bugs.gentoo.org/854144
|
||||
--- a/src/os/unix/pws_time.h
|
||||
+++ b/src/os/unix/pws_time.h
|
||||
@@ -10,9 +10,7 @@
|
||||
|
||||
#include "../typedefs.h"
|
||||
#include <stdint.h>
|
||||
-#ifdef __FreeBSD__
|
||||
#include <time.h>
|
||||
-#endif
|
||||
|
||||
#ifndef __TIME64_T_TYPE
|
||||
#define __TIME64_T_TYPE uint64_t
|
||||
@@ -37,6 +37,10 @@ BDEPEND="
|
||||
|
||||
S="${WORKDIR}/pwsafe-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.15.0-gcc12-time.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
einfo "Checking for -std=c++11 support in compiler"
|
||||
test-flags-CXX -std=c++11 > /dev/null || die
|
||||
|
||||
Reference in New Issue
Block a user