PERFORCE change 133419 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Jan 16 09:00:38 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133419
Change 133419 by hselasky at hselasky_laptop001 on 2008/01/16 17:00:25
Compile fix for FreeBSD 6.x.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_port.h#25 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_port.h#25 (text+ko) ====
@@ -202,6 +202,9 @@
#define usb_thread_create(f, s, p, ...) \
kthread_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
#define usb_thread_exit(err) kthread_exit(err)
+#endif
+
+#if (__FreeBSD_version < 700000)
#define thread_lock(td) mtx_lock_spin(&sched_lock)
#define thread_unlock(td) mtx_unlock_spin(&sched_lock)
#endif
More information about the p4-projects
mailing list