diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index ca1c1ee6047949a532fd2bec0abc1479fdc1676c..a4b731ef23604abb474f2140fb9e2bf474215fe0 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -497,7 +497,7 @@ struct file_operations { #define simple_strtol strtol #define do_gettimeofday(a) gettimeofday(a, NULL) -#define DEFINE_MUTEX(m) pthread_mutex_t m; +#define DEFINE_MUTEX(m) pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; #define mutex_lock pthread_mutex_lock #define mutex_unlock pthread_mutex_unlock #define mutex_init(m) pthread_mutex_init(m, NULL)