From e5ad41bce36372ebfd3b02bcb7b403d0df457622 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 27 Dec 2008 20:06:28 +0100 Subject: [PATCH] libport: Check for ENOTSUP being defined before using it. --- libs/port/spawn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/port/spawn.c b/libs/port/spawn.c index 490abb30ac8..38c2944191b 100644 --- a/libs/port/spawn.c +++ b/libs/port/spawn.c @@ -43,7 +43,10 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[]) { execvp(cmdname, (char **)argv); /* if we get here it failed */ - if (errno != ENOTSUP) return -1; /* exec fails on MacOS if the process has multiple threads */ +#ifdef ENOTSUP + if (errno != ENOTSUP) /* exec fails on MacOS if the process has multiple threads */ +#endif + return -1; } dfl_act.sa_handler = SIG_DFL;