0001-Fix-missing-declaration-in-system
Jean-Paul Mari <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <BN6PR16MB3139F2557F07E1B89FE202D5A733A@BN6PR16MB3139.namprd16.prod.outlook.com> |
Hi, This is a fix for an issue I've got when compiling newlib with m68k-elf. Thanks. Jean-Paul
0001-Fix-missing-declaration-in-system.patch
(application/octet-stream, 924 B)
From a6045970656201771160e6b989b8b72676269dae Mon Sep 17 00:00:00 2001 From: Jean-Paul Mari <[email protected]> Date: Tue, 19 Aug 2025 19:59:51 -0400 Subject: [PATCH] Fix missing declaration in system This patch adds a missing function declaration in system.c file. This helps avoid declaration compiler warning or error. Tested by building newlib for m68k-elf with GCC. --- newlib/libc/stdlib/system.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index f30b7df80..c31f6f12d 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -52,6 +52,8 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, #include <_syslist.h> #include <reent.h> +int _system(const char *s); + #if defined (unix) || defined (__CYGWIN__) static int do_system (struct _reent *ptr, const char *s); #endif -- 2.45.2.windows.1