summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/pthread_private.h
diff options
context:
space:
mode:
authord <d@openbsd.org>1999-01-08 04:59:49 +0000
committerd <d@openbsd.org>1999-01-08 04:59:49 +0000
commit31036c97eabb885d0def5745e714401dadf3ab0c (patch)
tree464a19e2e20989f960d63f20c6cb74416d47e381 /lib/libpthread/uthread/pthread_private.h
parentDriver for Macronix 98713, 98713A, 98715 and 98725 based nics ported from FreeBSD. (diff)
downloadwireguard-openbsd-31036c97eabb885d0def5745e714401dadf3ab0c.tar.xz
wireguard-openbsd-31036c97eabb885d0def5745e714401dadf3ab0c.zip
add poll(2). This might help get X threaded.
Diffstat (limited to 'lib/libpthread/uthread/pthread_private.h')
-rw-r--r--lib/libpthread/uthread/pthread_private.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h
index fb6cc7a1076..9772235728e 100644
--- a/lib/libpthread/uthread/pthread_private.h
+++ b/lib/libpthread/uthread/pthread_private.h
@@ -31,7 +31,7 @@
*
* Private thread definitions for the uthread kernel.
*
- * $OpenBSD: pthread_private.h,v 1.6 1998/12/23 22:49:46 d Exp $
+ * $OpenBSD: pthread_private.h,v 1.7 1999/01/08 04:59:50 d Exp $
*
*/
@@ -461,7 +461,7 @@ struct pthread {
*/
/* Kernel thread structure used when there are no running threads: */
-extern struct pthread _thread_kern_thread;
+extern struct pthread * volatile _thread_kern_thread;
/* Ptr to the thread structure for the running thread: */
extern struct pthread * volatile _thread_run;
@@ -753,6 +753,11 @@ pid_t _thread_sys_wait3(int *, int, struct rusage *);
pid_t _thread_sys_wait4(pid_t, int *, int, struct rusage *);
#endif
+/* #include <sys/poll.h> */
+#ifdef _SYS_POLL_H_
+int _thread_sys_poll(struct pollfd[], int, int);
+#endif
+
__END_DECLS
#endif /* !_PTHREAD_PRIVATE_H */