From 3eec45a48d03fff4e8653dc8fd5617f74c64f3a8 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 30 May 2015 16:25:31 +0200 Subject: fixed memory check on FreeBSD and add install docu Author: Andreas Baumann --- INSTALL | 15 +++++++++++++++ src/system.c | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 5fa8d55..d1712ee 100644 --- a/INSTALL +++ b/INSTALL @@ -47,6 +47,21 @@ Install the following packages from the official repos: nanomsg you have to build on your own. +Building on FreeBSD +------------------- + +FreeBSD 10 +---------- + +Install the following packages via 'pkg install' (pkgng) or via ports: + + * gengetopt + * libconfuse + * json-c + * nanomsg + * libdaemon + * libmicrohttpd + Building on Windows ------------------- diff --git a/src/system.c b/src/system.c index 96a07ab..c1a2ee3 100644 --- a/src/system.c +++ b/src/system.c @@ -391,7 +391,7 @@ unsigned int system_phys_memory( ) memState.dwLength = sizeof( MEMORYSTATUSEX ); GlobalMemoryStatusEx( &memState ); return memState.ullTotalPhys / 1024; -#elif defined( linux ) || defined( __linux ) || defined( __linux__ ) +#elif defined( linux ) || defined( __linux ) || defined( __linux__ ) || defined( __FreeBSD__ ) size_t pageSize; size_t nofPages; -- cgit v1.2.3-54-g00ecf