diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/sysconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c index 788688ef22..bdb0f1044d 100644 --- a/cpukit/posix/src/sysconf.c +++ b/cpukit/posix/src/sysconf.c @@ -11,6 +11,7 @@ #include <errno.h> #include <rtems/system.h> +#include <rtems/seterr.h> #include <rtems/score/tod.h> #include <sys/param.h> @@ -49,6 +50,5 @@ long sysconf( break; } - errno = EINVAL; - return -1; + rtems_set_errno_and_return_minus_one( EINVAL ); } |