summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/system.c')
-rw-r--r--newlib/libc/stdlib/system.c5
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;