* windows.cc (setitimer): Return ENOSYS on invalid argument.

This commit is contained in:
Christopher Faylor
2002-12-30 22:38:13 +00:00
parent 9f3255cee6
commit f715db84b6
2 changed files with 5 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ setitimer (int which, const struct itimerval *value, struct itimerval *oldvalue)
if (which != ITIMER_REAL)
{
set_errno (EINVAL);
set_errno (ENOSYS);
return -1;
}
/* Check if we will wrap */