aboutsummaryrefslogtreecommitdiff
path: root/src/common/physmem.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/physmem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/physmem.h b/src/common/physmem.h
index 597227ac..04a7ab4b 100644
--- a/src/common/physmem.h
+++ b/src/common/physmem.h
@@ -23,6 +23,10 @@
# endif
#endif
+#if defined(HAVE_PHYSMEM_SYSCONF) || defined(HAVE_NCPU_SYSCONF)
+# include <unistd.h>
+#endif
+
/// \brief Get the amount of physical memory in bytes
///