Make <sys/event.h> work on its own.
Right now this header file doesn't want to build when included on its own, as it depends on some integer types that are only declared internally. Switch it over to use <sys/_types.h> and the __* counterparts.
This commit is contained in:
parent
e895e7fce7
commit
92bb8c6809
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313704
@ -29,7 +29,8 @@
|
||||
#ifndef _SYS_EVENT_H_
|
||||
#define _SYS_EVENT_H_
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include <sys/_types.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#define EVFILT_READ (-1)
|
||||
#define EVFILT_WRITE (-2)
|
||||
@ -57,11 +58,11 @@
|
||||
} while(0)
|
||||
|
||||
struct kevent {
|
||||
uintptr_t ident; /* identifier for this event */
|
||||
__uintptr_t ident; /* identifier for this event */
|
||||
short filter; /* filter for event */
|
||||
u_short flags;
|
||||
u_int fflags;
|
||||
intptr_t data;
|
||||
unsigned short flags;
|
||||
unsigned int fflags;
|
||||
__intptr_t data;
|
||||
void *udata; /* opaque user data identifier */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user