msghandler follow-up: fix mingw/MSYS2 build
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user