summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include/sched.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-03-22 04:26:31 +0000
committerguenther <guenther@openbsd.org>2012-03-22 04:26:31 +0000
commit10a70b30461dcae6eef35b5ccc455cfcef18e5f6 (patch)
tree210e2a9b543166369e90535e5269641fc3519f17 /lib/libpthread/include/sched.h
parentMake DIR a private type within libc, give it the same underlying (diff)
downloadwireguard-openbsd-10a70b30461dcae6eef35b5ccc455cfcef18e5f6.tar.xz
wireguard-openbsd-10a70b30461dcae6eef35b5ccc455cfcef18e5f6.zip
<sched.h> is never pulled in from the kernel and #ifdef KERNEL would be
the wrong symbol anyway, so zap some lines ok matthew@
Diffstat (limited to 'lib/libpthread/include/sched.h')
-rw-r--r--lib/libpthread/include/sched.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libpthread/include/sched.h b/lib/libpthread/include/sched.h
index e910040a569..a959d0f70de 100644
--- a/lib/libpthread/include/sched.h
+++ b/lib/libpthread/include/sched.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sched.h,v 1.7 2012/03/22 03:43:19 guenther Exp $ */
+/* $OpenBSD: sched.h,v 1.8 2012/03/22 04:26:31 guenther Exp $ */
/* sched.h: POSIX 1003.1b Process Scheduling header */
@@ -40,10 +40,7 @@
#define _SCHED_H_
#include <sys/types.h> /* For pid_t */
-
-#ifndef KERNEL
-#include <time.h> /* Per P1003.4 */
-#endif
+#include <time.h> /* Per P1003.4 */
/* Scheduling policies
*/
@@ -56,7 +53,6 @@ struct sched_param
int sched_priority;
};
-#ifndef KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
@@ -78,6 +74,4 @@ int sched_rr_get_interval(pid_t, struct timespec *);
#endif
__END_DECLS
-#endif /* KERNEL */
-
#endif /* _SCHED_H_ */