From 6950543bb97a4c993e5b4e5ddb1910eef5ca367d Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 19 Aug 2026 07:36:21 -0400 Subject: [PATCH] build fix under MSYS2 ../src/pline.c: In function 'execplinehandler': ../src/pline.c:678:15: error: implicit declaration of function '_spawnv' [-Wimplicit-function-declaration] 678 | ret = _spawnv(_P_NOWAIT, sysopt.msghandler, args); | ^~~~~~~ ../src/pline.c:678:23: error: '_P_NOWAIT' undeclared (first use in this function); did you mean 'MM_NOWAIT'? 678 | ret = _spawnv(_P_NOWAIT, sysopt.msghandler, args); | ^~~~~~~~~ | MM_NOWAIT ../src/pline.c:678:23: note: each undeclared identifier is reported only once for each function it appears in make: *** [GNUmakefile:1376: o/nethack/pline.o] Error 1 --- include/windconf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/windconf.h b/include/windconf.h index 2ba5b182e..792df39cf 100644 --- a/include/windconf.h +++ b/include/windconf.h @@ -108,6 +108,7 @@ extern char *windows_exepath(void); */ #ifdef __GNUC__ +#include #define MD_USE_TMPFILE_S # #ifdef strncasecmp