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
This commit is contained in:
nhmall
2026-08-19 07:36:21 -04:00
parent 4c4867d586
commit 6950543bb9
+1
View File
@@ -108,6 +108,7 @@ extern char *windows_exepath(void);
*/
#ifdef __GNUC__
#include <process.h>
#define MD_USE_TMPFILE_S
#
#ifdef strncasecmp