mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2025-07-14 15:57:40 +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>
|
#include <linux/semaphore.h>
|
||||||
#endif
|
#endif
|
||||||
#include <linux/sem.h>
|
#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>
|
#include <linux/sched.h>
|
||||||
|
#endif
|
||||||
#include <linux/etherdevice.h>
|
#include <linux/etherdevice.h>
|
||||||
#include <linux/wireless.h>
|
#include <linux/wireless.h>
|
||||||
#include <net/iw_handler.h>
|
#include <net/iw_handler.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user