QTfrontend/ui/page/pagefeedback.cpp
branchflibqtfrontend
changeset 8275 e0a134d890e7
parent 8271 9cebdcc689d7
child 8277 cd2bae15a9a3
--- a/QTfrontend/ui/page/pagefeedback.cpp	Sat Dec 08 15:38:16 2012 +0100
+++ b/QTfrontend/ui/page/pagefeedback.cpp	Sat Dec 08 20:23:13 2012 +0400
@@ -176,7 +176,11 @@
 #ifdef Q_WS_X11
     number_of_cores += QString::number(sysconf(_SC_NPROCESSORS_ONLN)) + "\n";
     long pages = sysconf(_SC_PHYS_PAGES),
+#ifndef Q_OS_FREEBSD
          available_pages = sysconf(_SC_AVPHYS_PAGES),
+#else
+         available_pages = 0,
+#endif
          page_size = sysconf(_SC_PAGE_SIZE);
     total_ram += QString::number(pages * page_size) + "\n";
     os_version += "GNU/Linux or BSD\n";