diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-05-30 16:25:31 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbauamnn.cc> | 2015-05-30 16:28:01 +0200 |
commit | 3eec45a48d03fff4e8653dc8fd5617f74c64f3a8 (patch) | |
tree | 99a17859728c8aa581e241c43ac3b02a847a7e00 | |
parent | 56dd21f443c86c3bf96a884c970ceed11a56409a (diff) | |
download | biruda-3eec45a48d03fff4e8653dc8fd5617f74c64f3a8.tar.gz biruda-3eec45a48d03fff4e8653dc8fd5617f74c64f3a8.tar.bz2 |
fixed memory check on FreeBSD and add install docu
Author: Andreas Baumann <mail@andreasbaumann.cc>
-rw-r--r-- | INSTALL | 15 | ||||
-rw-r--r-- | src/system.c | 2 |
2 files changed, 16 insertions, 1 deletions
@@ -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; |