commit 3316919fa6b703a5514a3817b8f22cde27ccf569
parent 08f54b63417d00eff3ca95469a436888add76741
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 17 May 2022 17:05:53 +0200
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.
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git 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);
diff --git 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);