A missing include caused sysconf not to be called, which lead
to the hardware thread count being zero on most non-Windows systems.
Change-Id: I102c04f494f2946725bb5714482cb861aa8f69fc
#include <assert.h>
#include <string.h>
+#ifdef HAVE_UNISTD_H
+/* For sysconf */
+#include <unistd.h>
+#endif
+
#include "types/enums.h"
#include "types/hw_info.h"
#include "types/commrec.h"
ret = sysconf(_SC_NPROCESSORS_CONF);
#elif defined(_SC_NPROC_CONF)
ret = sysconf(_SC_NPROC_CONF);
+#else
+#warning "No valid sysconf argument value found. Executables will not be able to determine the number of hardware threads: mdrun will use 1 thread by default!"
#endif /* End of check for sysconf argument values */
#else