Changes included in this patch:
1) Check for MIN_NICE in prio.h
Signed-off-by: Pawel Schulfer <pawel.schulfer@intel.com>
AC_MSG_RESULT(no)
])
+ AC_MSG_CHECKING([if MIN_NICE is defined in prio.h])
+ LB_LINUX_TRY_COMPILE([
+ #include <linux/sched/prio.h>
+ ],[
+ long nice = MIN_NICE;
+
+ return 0;
+ ],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_MIN_NICE, 1,
+ [MIN_NICE is defined in prio.h])
+ ],[
+ AC_MSG_RESULT(no)
+ ])
+
])
#
# COMPAT_CONFIG_HEADERS
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0))
#include <linux/netdevice.h>
+#include <linux/sched/prio.h>
#ifndef AF_IB
#define AF_IB 27 /* Native InfiniBand address */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0))
+#include <linux/sched/prio.h>
+
#ifndef HAVE_REINIT_COMPLETION
#define HAVE_REINIT_COMPLETION
--- /dev/null
+#ifndef _COMPAT_LINUX_PRIO_H
+#define _COMPAT_LINUX_PRIO_H 1
+
+#include "../../compat/config.h"
+
+#ifdef HAVE_MIN_NICE
+#include_next <linux/sched/prio.h>
+#else
+#define MAX_NICE 19
+#define MIN_NICE -20
+#define NICE_WIDTH (MAX_NICE - MIN_NICE + 1)
+#endif /* HAVE_MIN_NICE */
+#endif /* _COMPAT_LINUX_PRIO_H */
+