diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c index b16c56f255a2..403ee052af62 100644 --- a/sys/dev/usb/ufm.c +++ b/sys/dev/usb/ufm.c @@ -72,8 +72,8 @@ int ufmdebug = 100; #define DPRINTFN(n,x) #endif -#if defined(__FreeBSD__) && __FreeBSD_version >= 500023 -typedef struct thread usb_proc_t; +#ifdef __FreeBSD_version +typedef d_thread_t usb_proc_t; #else typedef struct proc usb_proc_t; #endif