scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 3b8e22be8e01e95eddeeb9a1949b897df9b3f869
parent c22a72acf6627d779b527dfd43e6abc7148f2886
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 17 May 2022 17:05:53 +0200

libc/darwin: Supress warning in sys.h

_sigaction() prototype was using struct sigaction that it is not
defined in the file which leads to a definition only valid in
the context of the own prototype. A forward declaration is added
to avoid it.

Diffstat:
Minclude/bits/darwin/sys.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/bits/darwin/sys.h b/include/bits/darwin/sys.h @@ -18,6 +18,8 @@ typedef int pid_t; +struct sigaction; + extern pid_t _getpid(void); extern int _kill(pid_t, int); extern int _sigaction(int, struct sigaction *, struct sigaction *);