1
0
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:
Christian kimocoder 2017-08-25 12:42:39 +02:00 committed by GitHub
parent ae2e4ebb00
commit ba0bed4636

View File

@ -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>