Module: wine Branch: master Commit: e5ad41bce36372ebfd3b02bcb7b403d0df457622 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5ad41bce36372ebfd3b02bcb7...
Author: Alexandre Julliard julliard@winehq.org Date: Sat Dec 27 20:06:28 2008 +0100
libport: Check for ENOTSUP being defined before using it.
---
libs/port/spawn.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libs/port/spawn.c b/libs/port/spawn.c index 490abb3..38c2944 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;