summaryrefslogtreecommitdiffstats
path: root/sys/sys/thr.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-09-22 15:04:28 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-09-22 15:04:28 +0000
commita2dd6344c030d244faa26914eef8b07174d8d17a (patch)
tree7d2bb2f3f83c1c91a2809fed7db73be3c84171ce /sys/sys/thr.h
parent04676f904a987e62b1967615a3e4ded7d310562b (diff)
downloadFreeBSD-src-a2dd6344c030d244faa26914eef8b07174d8d17a.zip
FreeBSD-src-a2dd6344c030d244faa26914eef8b07174d8d17a.tar.gz
Add compatible code to let 32bit libthr work on 64bit kernel.
Diffstat (limited to 'sys/sys/thr.h')
-rw-r--r--sys/sys/thr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/thr.h b/sys/sys/thr.h
index bd2723e..216ef6f 100644
--- a/sys/sys/thr.h
+++ b/sys/sys/thr.h
@@ -64,6 +64,10 @@ int thr_kill(long id, int sig);
int thr_suspend(const struct timespec *timeout);
int thr_wake(long id);
int thr_set_name(long id, const char *name);
+#else
+struct thread;
+int kern_thr_new(struct thread *td, struct thr_param *param);
+int kern_thr_suspend(struct thread *, struct timespec *);
#endif /* !_KERNEL */
#endif /* ! _SYS_THR_H_ */
OpenPOWER on IntegriCloud