mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
fix import on linux kernel >= 4.11.0
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
ae2e4ebb00
commit
ba0bed4636
@ -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…
Reference in New Issue
Block a user