mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2025-04-29 23:29:38 +02:00
Fix import on linux kernel >= 4.11.0 (#205)
The sched library now has a new location on linux kernel >= 4.11.0. This commit allows builds to occur on both pre and post 4.11.0 linux kernels.
This commit is contained in:
parent
b018b446fb
commit
eb26d334d7
@ -45,7 +45,14 @@
|
||||
#include <linux/semaphore.h>
|
||||
#endif
|
||||
#include <linux/sem.h>
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
||||
#define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER
|
||||
#endif
|
||||
#ifdef HAVE_SIGNAL_FUNCTIONS_OWN_HEADER
|
||||
#include <linux/sched/signal.h>
|
||||
#else
|
||||
#include <linux/sched.h>
|
||||
#endif
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/wireless.h>
|
||||
#include <net/iw_handler.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user