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);
|
execvp(cmdname, (char **)argv);
|
||||||
/* if we get here it failed */
|
/* 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;
|
dfl_act.sa_handler = SIG_DFL;
|
||||||
|
|
Loading…
Reference in New Issue