libport: Check for ENOTSUP being defined before using it.

This commit is contained in:
Alexandre Julliard 2008-12-27 20:06:28 +01:00
parent c03cd0850c
commit e5ad41bce3
1 changed files with 4 additions and 1 deletions

View File

@ -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;