Restored macro for sched include
authorTom Knot <tomasknot@gmail.com>
Fri, 13 Apr 2018 15:18:29 +0000 (17:18 +0200)
committerTom Knot <tomasknot@gmail.com>
Fri, 13 Apr 2018 15:18:29 +0000 (17:18 +0200)
modules/unipi/src/unipi_common.h

index 2c06b0e6d264fa9c1426d6c5387c6a60bde6cc93..c530417f4917fd3279fdc73a48e2ce6b20bfabee 100644 (file)
  * Definitions *
  ***************/
 
-#define NEURONSPI_SCHED_REQUIRED 0 // Older kernels do not require sched/types to be specifically imported
+#define NEURONSPI_SCHED_REQUIRED 1 // Older kernels do not require sched/types to be specifically imported
+#ifdef NEURONSPI_SCHED_REQUIRED
+#include <uapi/linux/sched/types.h>
+#endif
 #define NEURONSPI_MAJOR_VERSIONSTRING "Development Beta Version 0.04:05:04:2018"
 
 #define NEURONSPI_MAX_DEVS                             3