ref: 3b8e22be8e01e95eddeeb9a1949b897df9b3f869
parent: c22a72acf6627d779b527dfd43e6abc7148f2886
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue May 17 13:05:53 EDT 2022
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.
--- 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 *);