Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / gmxlib / gmx_thread_affinity.c
index 385856f71ddef3c5bdc01760f4c0f62b76b1fc0f..703ec4cf713c4196ed8053800fc497f707ddda66 100644 (file)
@@ -35,7 +35,7 @@
 #include "gmxpre.h"
 
 #include "config.h"
-#if defined(HAVE_SCHED_H)
+#ifdef HAVE_SCHED_AFFINITY
 #  ifndef _GNU_SOURCE
 #    define _GNU_SOURCE 1
 #  endif