head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.14 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.12 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.10 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.8 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.6 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.4 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.2 pkgsrc-2024Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2024.07.31.22.31.50; author vins; state Exp; branches; next ; commitid H3zUPrGg40k0H2kF; desc @@ 1.1 log @mail/procmail: long due update to v3.24 Fixed all bugs collected by Debian and others during the past 21 years. See the git commit history for detailed descriptions. @ text @$NetBSD$ Fix build with gcc-14 --- src/autoconf.orig 2022-03-02 09:52:56.000000000 +0000 +++ src/autoconf @@@@ -416,6 +416,12 @@@@ cat >_autotst.c < +int killchildren(); +int fdlock(int fd); +int sfdlock(int fd); +int fdunlock(); + void stimeout() { timeout=1;close(fdcollect);killchildren(); } @@@@ -437,7 +443,7 @@@@ unsigned sfork() return pid; } -int main(argc,argv)char*argv[]; +int main(int argc,char*argv[]) { int goodlock,testlock,i,pip[2],pipw[2];time_t otimet;unsigned dtimet; static char filename[]="_locktst.l0"; close(0);goodlock=0;testlock=FIRST_lock;signal(SIGPIPE,SIG_DFL); @@@@ -587,13 +593,13 @@@@ int killchildren() return 0; } -int sfdlock(fd) +int sfdlock(int fd) { int i;unsigned gobble[GOBBLE>>2]; for(i=GOBBLE>>2;i;gobble[--i]=~(unsigned)0); /* SunOS crash test */ return fdlock(fd); } -static oldfdlock; +static int oldfdlock; #ifdef F_SETLKW static struct flock flck; /* why can't it be a local variable? */ #endif @@@@ -601,7 +607,7 @@@@ static struct flock flck; /* why can't static off_t oldlockoffset; #endif -int fdlock(fd) +int fdlock(int fd) { int i;unsigned gobble[GOBBLE>>2]; for(i=GOBBLE>>2;i;gobble[--i]=~(unsigned)0); /* SunOS crash test */ oldfdlock=fd;fd=0; @@@@ -997,11 +1003,11 @@@@ int main(){int i;i=1; i+=WIFEXITED(i); i+=WIFSTOPPED(i); i+=WEXITSTATUS(i); - i+=WSIGTERM(i); + i+=WTERMSIG(i); return i;} HERE -echo 'Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()' +echo 'Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WTERMSIG()' if $MAKE _autotst.$O >_autotst.rrr 2>&1 then $FGREP -v include/ <_autotst.rrr >_autotst.$O @@@@ -1033,6 +1039,8 @@@@ cat >_autotst.c <$DEVNULL 2>&1 +if $MAKE _autotst.$O >_autotst.rrr 2>&1 then : else @@@@ -1201,7 +1209,7 @@@@ unsigned long dobench(strstr,iter,haysta return (unsigned long)clock()-to; } #endif -int main(argc,argv)int argc;const char*argv[]; +int main(int argc,const char*argv[]) { if(argc==1) { char*haystack; #ifdef BENCHSIZE @