Fix build error for Linux >= 4.19

This commit is contained in:
brektrou 2019-03-15 08:57:59 +07:00 committed by GitHub
parent 2e369c2a58
commit e8e56c1f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,6 +686,7 @@ static int rtw_cfg80211_sync_iftype(_adapter *adapter)
static u64 rtw_get_systime_us(void)
{
// Fix build error for Linux >= 4.19
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39))
struct timespec ts;
getboottime(&ts);