mail-filter/dcc: fix configure with clang16

Doesn't look like will get to use eautoreconf here.

Closes: https://bugs.gentoo.org/870646
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-09-28 22:10:01 -04:00
parent 8f0b320d0d
commit 7f0de70518
2 changed files with 31 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ dcc_rundir=var/run/dcc
PATCHES=(
"${FILESDIR}"/${PN}-1.3.140-freebsd.patch
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-clang16.patch
)
src_configure() {

View File

@@ -0,0 +1,30 @@
configure.ac is missing, so need to edit this manually
https://bugs.gentoo.org/870646
--- a/configure
+++ b/configure
@@ -796,3 +796,3 @@
-main(){return(0);}
+int main(void){return(0);}
EOF
@@ -1100,3 +1100,3 @@
#include "confdefs.h"
-main()
+int main(void)
{exit(sizeof(void*)==8 ? 0 : sizeof(void*));}
@@ -1463,3 +1463,3 @@
#include <sys/types.h>
-main()
+int main(void)
{
@@ -3330,3 +3330,3 @@
#define min(a,b) ((a) < (b) ? (a) : (b))
-main()
+int main(void)
{
@@ -3596,3 +3596,3 @@
#include "include/dcc_paths.h"
-main()
+int main(void)
{