mirror of
https://github.com/reactos/wine.git
synced 2025-01-20 02:35:04 +00:00
libport: Check for ENOTSUP being defined before using it.
This commit is contained in:
parent
c03cd0850c
commit
e5ad41bce3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user