summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-05-30 16:25:31 +0200
committerAndreas Baumann <mail@andreasbauamnn.cc>2015-05-30 16:28:01 +0200
commit3eec45a48d03fff4e8653dc8fd5617f74c64f3a8 (patch)
tree99a17859728c8aa581e241c43ac3b02a847a7e00
parent56dd21f443c86c3bf96a884c970ceed11a56409a (diff)
downloadbiruda-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--INSTALL15
-rw-r--r--src/system.c2
2 files changed, 16 insertions, 1 deletions
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;