shithub: scc

Download patch

ref: 3316919fa6b703a5514a3817b8f22cde27ccf569
parent: 08f54b63417d00eff3ca95469a436888add76741
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue May 17 13:05:53 EDT 2022

libc: 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/dragonfly/sys.h
+++ b/include/bits/dragonfly/sys.h
@@ -18,6 +18,8 @@
 
 typedef int pid_t;
 
+struct sigaction;
+
 extern int _fork(void);
 extern pid_t _getpid(void);
 extern int _kill(pid_t, int);
--- a/include/bits/netbsd/sys.h
+++ b/include/bits/netbsd/sys.h
@@ -18,6 +18,8 @@
 
 typedef int pid_t;
 
+struct sigaction;
+
 extern int _fork(void);
 extern pid_t _getpid(void);
 extern int _kill(pid_t, int);