diff options
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r-- | newlib/libc/stdlib/system.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index 73c0540d9..ad2217743 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -69,7 +69,10 @@ _system_r (ptr, s) struct _reent *ptr; _CONST char *s; { -#ifdef NO_EXEC +#if defined(HAVE_SYSTEM) + return _system (s); + ptr = ptr; +#elif defined(NO_EXEC) if (s == NULL) return 0; errno = ENOSYS; |