Fix MingW build
[alexxy/gromacs.git] / src / gromacs / gmxlib / gmx_thread_affinity.c
index fb2064213ef6fe7bdd5de74ee8bdcb8d60c817b8..d38b2cfba1f30a5f51a665df5a106504038456a8 100644 (file)
@@ -35,7 +35,7 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#if defined(HAVE_SCHED_H)
+#ifdef HAVE_SCHED_AFFINITY
 #  ifndef _GNU_SOURCE
 #    define _GNU_SOURCE 1
 #  endif