mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Now that we have a separate header file for sigset_t, use it and avoid
the full pollution of <signal.h>.
This commit is contained in:
parent
e055075e35
commit
bf121deddc
1 changed files with 8 additions and 4 deletions
|
|
@ -39,23 +39,27 @@
|
|||
#include <sys/cdefs.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
#include <sys/_sigset.h>
|
||||
#include <sys/timespec.h>
|
||||
|
||||
/*
|
||||
* Other things required for this header which we do not presently implement:
|
||||
*
|
||||
* struct timeval (with suseconds_t)
|
||||
* sigset_t
|
||||
* fd_set (but we assume that it is defined)
|
||||
* fd_set
|
||||
* FD_* macros
|
||||
*
|
||||
* Temporarily get all of these things from <sys/types.h>, which has too
|
||||
* much pollution to be used here but will do for now. (Eventually, the
|
||||
* latter two will move to this file and be included *from* <sys/types.h>
|
||||
* in the BSD namespace.)
|
||||
*/
|
||||
#include <signal.h> /* XXX allowed but unnecessary pollution */
|
||||
#include <sys/types.h> /* XXX dependency reversed */
|
||||
|
||||
#ifndef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int pselect(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict,
|
||||
const struct timespec *__restrict, const struct __sigset *__restrict);
|
||||
const struct timespec *__restrict, const sigset_t *__restrict);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue