remake doesn't build with gcc-15
Hi. There's a build failure with a new compiler:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097786
Because gcc-15 treats void f(); as void f(void);
Here we're redeclaring getcwd(), and the new behavior makes it look different. I patched it to not redeclare getcwd() at all:
https://salsa.debian.org/debian/remake/-/blob/master/debian/patches/do-not-redeclare-getcwd.patch?ref_type=heads
Probably we shouldn't be redeclaring it.
Thanks
Thanks for reporting and fixing. A couple of things. First, using #ifndef is cleaner than #ifdef #else. Second, the more recent version of remake targets GNU make 4.4 rather than GNU make 4.3. Please consider upgrading to using the 4.4 branch.
Actually, I'll mention one more thing. One difference in this code over GNU make is that we do not attempt to support Vax VMS (much to the annoyance of some vocal Vax VMS users). Therefore, any place we have # ifdefs for VMS can be removed. (I see a few more there, but I left that in for now.)