diff --git a/src/cfgparse.c b/src/cfgparse.c index 52979390b..fc447d6eb 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -10,10 +10,10 @@ * */ -#ifdef USE_LIBCRYPT -/* This is to have crypt() defined on Linux */ +/* This is to have crypt() and sched_setaffinity() defined on Linux */ #define _GNU_SOURCE +#ifdef USE_LIBCRYPT #ifdef USE_CRYPT_H /* some platforms such as Solaris need this */ #include @@ -29,6 +29,9 @@ #include #include #include +#ifdef USE_CPU_AFFINITY +#include +#endif #include #include #include