From: Santiago Vila <sanvila@debian.org>
Subject: Fixes for gcc-15
Bug-Debian: https://bugs.debian.org/1097653
X-Debian-version: 3.24+really3.22-5

--- a/src/autoconf
+++ b/src/autoconf
@@ -422,12 +422,12 @@
 int sfdlock(int fd);
 int fdunlock();
 
-void stimeout()
+void stimeout(int sig)
 { timeout=1;close(fdcollect);killchildren();
 }
 
-void Terminate()
-{ stimeout();exit(1);
+void Terminate(int sig)
+{ stimeout(sig);exit(1);
 }
 
 static unsigned long seed;
@@ -1039,8 +1039,8 @@
 #ifndef NO_COMSAT
 #include "network.h"
 #endif
-int setrgid();
-int setresgid();
+int setrgid(int dummy);
+int setresgid(int dummy1, int dummy2, int dummy3);
 int main(){char a[2];
  endpwent();endgrent();memmove(a,"0",1);bcopy("0",a,1);strcspn(a,"0");
  strtol("0",(char**)0,10);strchr("0",'0');strpbrk(a,"0");rename(a,"0");
@@ -1200,8 +1200,8 @@
 #ifdef BENCHSIZE
 #undef strstr						  /* from includes.h */
 #undef free						     /* from shell.h */
-unsigned long dobench(strstr,iter,haystack)char*(*const strstr)();
- unsigned long iter;const char*const haystack;
+unsigned long dobench(char* (*const strstr)(const char*, const char*),
+ unsigned long iter, const char* const haystack)
 { unsigned long to;
   to=(unsigned long)clock();
   do (*strstr)(haystack,FROM_EXPR);
