msghandler follow-up: fix mingw/MSYS2 build

This commit is contained in:
nhmall
2024-10-19 07:28:12 -04:00
parent 696af89299
commit 64bb0e2144

View File

@@ -625,7 +625,7 @@ static boolean use_pline_handler = TRUE;
staticfn void staticfn void
execplinehandler(const char *line) execplinehandler(const char *line)
{ {
#if defined(POSIX_TYPES) || defined(__GNUC__) #if defined(UNIX) && (defined(POSIX_TYPES) || defined(__GNUC__))
int f; int f;
#endif #endif
const char *args[3]; const char *args[3];
@@ -633,7 +633,7 @@ execplinehandler(const char *line)
if (!use_pline_handler || !sysopt.msghandler) if (!use_pline_handler || !sysopt.msghandler)
return; return;
#if defined(POSIX_TYPES) || defined(__GNUC__) #if defined(UNIX) && (defined(POSIX_TYPES) || defined(__GNUC__))
f = fork(); f = fork();
if (f == 0) { /* child */ if (f == 0) { /* child */
args[0] = sysopt.msghandler; args[0] = sysopt.msghandler;