summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimo Aaltonen <[email protected]>2019-02-06 10:02:40 +0200
committerEric Engestrom <[email protected]>2019-02-27 14:56:48 +0000
commit738626dacace4b3eaca8a8fcbfe4c984f9000419 (patch)
tree6581d80b423e94cb2792419cb69bc3966733db7a /src
parent2fff5966d661346378fe51bba74af5b0eb2db303 (diff)
util/os_misc: Add check for PIPE_OS_HURD
Fix build on Hurd. Signed-off-by: Timo Aaltonen <[email protected]> Acked-by: Eric Engestrom <[email protected]> Acked-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/util/os_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/os_misc.c b/src/util/os_misc.c
index 09d4400e082..6586b1a0739 100644
--- a/src/util/os_misc.c
+++ b/src/util/os_misc.c
@@ -47,7 +47,7 @@
#endif
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_SOLARIS)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HURD)
# include <unistd.h>
#elif defined(PIPE_OS_APPLE) || defined(PIPE_OS_BSD)
# include <sys/sysctl.h>
@@ -124,7 +124,7 @@ os_get_option(const char *name)
bool
os_get_total_physical_memory(uint64_t *size)
{
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_SOLARIS)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HURD)
const long phys_pages = sysconf(_SC_PHYS_PAGES);
const long page_size = sysconf(_SC_PAGE_SIZE);