Index: head/sys/compat/linux/linux.h =================================================================== --- head/sys/compat/linux/linux.h +++ head/sys/compat/linux/linux.h @@ -140,4 +140,6 @@ int linux_to_bsd_signal(int sig); int bsd_to_linux_signal(int sig); +extern LIST_HEAD(futex_list, futex) futex_list; + #endif /* _LINUX_MI_H_ */ Index: head/sys/compat/linux/linux.c =================================================================== --- head/sys/compat/linux/linux.c +++ head/sys/compat/linux/linux.c @@ -51,6 +51,8 @@ #include #include +struct futex_list futex_list; + CTASSERT(LINUX_IFNAMSIZ == IFNAMSIZ); static int bsd_to_linux_sigtbl[LINUX_SIGTBLSZ] = { Index: head/sys/compat/linux/linux_futex.h =================================================================== --- head/sys/compat/linux/linux_futex.h +++ head/sys/compat/linux/linux_futex.h @@ -38,7 +38,6 @@ #ifndef _LINUX_FUTEX_H #define _LINUX_FUTEX_H -extern LIST_HEAD(futex_list, futex) futex_list; extern struct mtx futex_mtx; #define LINUX_FUTEX_WAIT 0 Index: head/sys/compat/linux/linux_futex.c =================================================================== --- head/sys/compat/linux/linux_futex.c +++ head/sys/compat/linux/linux_futex.c @@ -207,8 +207,6 @@ TAILQ_HEAD(lf_waiting_proc, waiting_proc) f_waiting_proc; }; -struct futex_list futex_list; - #define FUTEX_LOCK(f) mtx_lock(&(f)->f_lck) #define FUTEX_LOCKED(f) mtx_owned(&(f)->f_lck) #define FUTEX_UNLOCK(f) mtx_unlock(&(f)->f_lck)