File nethack-gcc15.patch of Package nethack
diff -upr nethack-3.4.3.orig/include/system.h nethack-3.4.3/include/system.h
--- nethack-3.4.3.orig/include/system.h 2025-06-30 14:24:45.885011839 +0000
+++ nethack-3.4.3/include/system.h 2025-06-30 14:28:27.925597433 +0000
@@ -57,7 +57,7 @@ typedef long off_t;
#endif
#ifndef SIG_RET_TYPE
# if defined(NHSTDC) || defined(POSIX_TYPES) || defined(OS2) || defined(__DECC)
-# define SIG_RET_TYPE void (*)()
+# define SIG_RET_TYPE void (*)(int)
# endif
#endif
#ifndef SIG_RET_TYPE
diff -upr nethack-3.4.3.orig/win/tty/wintty.c nethack-3.4.3/win/tty/wintty.c
--- nethack-3.4.3.orig/win/tty/wintty.c 2025-06-30 14:24:45.909960270 +0000
+++ nethack-3.4.3/win/tty/wintty.c 2025-06-30 14:29:53.154139276 +0000
@@ -199,7 +199,7 @@ const char *mesg;
#if defined(SIGWINCH) && defined(CLIPPING)
STATIC_OVL void
-winch()
+winch(int unused)
{
int oldLI = LI, oldCO = CO, i;
register struct WinDesc *cw;