diff --git a/opal/util/num_procs.c b/opal/util/num_procs.c index 7ef4fddfec..4a2f448d8a 100644 --- a/opal/util/num_procs.c +++ b/opal/util/num_procs.c @@ -12,7 +12,9 @@ #include "opal_config.h" +#if HAVE_UNISTD_H #include +#endif /* HAVE_UNISTD_H */ #include "opal/constants.h" #include "opal/util/num_procs.h"