Commit e5ad41bc authored by Alexandre Julliard's avatar Alexandre Julliard

libport: Check for ENOTSUP being defined before using it.

parent c03cd085
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment