Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
#include "common/logging.h"
#include "common/system.h"
-#if HAVE_SCHED_H
+#ifdef HAVE_SCHED_H
#include <sched.h>
#endif
-#if HAVE_PROCINFO_H
+#ifdef HAVE_PROCINFO_H
#include <procinfo.h>
#endif
bool set_scheduler(void)
{
#ifdef _AIX_
-#if HAVE_THREAD_SETSCHED
+#ifdef HAVE_THREAD_SETSCHED
struct thrdentry64 te;
tid64_t ti;
}
#endif
#else /* no AIX */
-#if HAVE_SCHED_SETSCHEDULER
+#ifdef HAVE_SCHED_SETSCHEDULER
struct sched_param p;
p.sched_priority = 1;
void reset_scheduler(void)
{
#ifdef _AIX_
-#if HAVE_THREAD_SETSCHED
+#ifdef HAVE_THREAD_SETSCHED
struct thrdentry64 te;
tid64_t ti;
}
#endif
#else /* no AIX */
-#if HAVE_SCHED_SETSCHEDULER
+#ifdef HAVE_SCHED_SETSCHEDULER
struct sched_param p;
p.sched_priority = 0;