From 64bb0e21440c6bdfa6049d5f7eefec9610d67cc7 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 19 Oct 2024 07:28:12 -0400 Subject: [PATCH] msghandler follow-up: fix mingw/MSYS2 build --- src/pline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pline.c b/src/pline.c index 4cf52bc2e..879f48003 100644 --- a/src/pline.c +++ b/src/pline.c @@ -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;