summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-03-16 11:19:36 +0000
committerphk <phk@FreeBSD.org>2006-03-16 11:19:36 +0000
commit98cbabd0eb8f29587a2d94e6f7ed7db6914eed96 (patch)
tree55d5d3f56d924d4c34aabe59c01f6cbf9550f768 /sys/sys/event.h
parenta1d5f1a2a4a416620718be012357c563e478aa2f (diff)
downloadFreeBSD-src-98cbabd0eb8f29587a2d94e6f7ed7db6914eed96.zip
FreeBSD-src-98cbabd0eb8f29587a2d94e6f7ed7db6914eed96.tar.gz
Remove nested includes of <sys/_lock.h> and <sys/_mutex.h> which spill into
userland. The comment indicated that something in userland needed them, but make universe can't seem to find any traces of it. Move <sys/queue.h> include up.
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 4395cbb..34794b4 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -29,6 +29,8 @@
#ifndef _SYS_EVENT_H_
#define _SYS_EVENT_H_
+#include <sys/queue.h>
+
#define EVFILT_READ (-1)
#define EVFILT_WRITE (-2)
#define EVFILT_AIO (-3) /* attached to aio requests */
@@ -114,13 +116,6 @@ struct kevent {
#define NOTE_LINKDOWN 0x0002 /* link is down */
#define NOTE_LINKINV 0x0004 /* link state is invalid */
-/*
- * This is currently visible to userland to work around broken
- * programs which pull in <sys/proc.h>.
- */
-#include <sys/queue.h>
-#include <sys/_lock.h>
-#include <sys/_mutex.h>
struct knote;
SLIST_HEAD(klist, knote);
struct kqueue;
OpenPOWER on IntegriCloud