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
execplinehandler(const char *line)
{
#if defined(POSIX_TYPES) || defined(__GNUC__)
#if defined(UNIX) && (defined(POSIX_TYPES) || defined(__GNUC__))
int f;
#endif
const char *args[3];
@@ -633,7 +633,7 @@ execplinehandler(const char *line)
if (!use_pline_handler || !sysopt.msghandler)
return;
#if defined(POSIX_TYPES) || defined(__GNUC__)
#if defined(UNIX) && (defined(POSIX_TYPES) || defined(__GNUC__))
f = fork();
if (f == 0) { /* child */
args[0] = sysopt.msghandler;