File fix-gcc15.patch of Package remake

From 15f36a69b1a7798fa836d849c68c0fa5cd1dae6f Mon Sep 17 00:00:00 2001
From: rocky <rocky@gnu.org>
Date: Fri, 26 Sep 2025 06:59:41 -0400
Subject: [PATCH] GCC-15 tolerance

gcc-15 treats void f(); as void f(void); See #169
---
 src/make.h    | 6 +-----
 src/makeint.h | 6 +-----
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/make.h b/src/make.h
index 5da383162..09c613be3 100644
--- a/src/make.h
+++ b/src/make.h
@@ -415,11 +415,7 @@ long int lseek ();
 
 #endif  /* Not GNU C library or POSIX.  */
 
-#ifdef  HAVE_GETCWD
-# if !defined(VMS) && !defined(__DECC)
-char *getcwd ();
-# endif
-#else
+#ifndef HAVE_GETCWD
 char *getwd ();
 # define getcwd(buf, len)       getwd (buf)
 #endif
diff --git a/src/makeint.h b/src/makeint.h
index 9bf867d1b..53bd67f87 100644
--- a/src/makeint.h
+++ b/src/makeint.h
@@ -611,11 +611,7 @@ long int lseek ();
 
 #endif  /* Not GNU C library or POSIX.  */
 
-#ifdef  HAVE_GETCWD
-# if !defined(VMS) && !defined(__DECC)
-char *getcwd ();
-# endif
-#else
+#ifndef HAVE_GETCWD
 char *getwd ();
 # define getcwd(buf, len)       getwd (buf)
 #endif
openSUSE Build Service is sponsored by