Unbreak build
authorunc0rr
Sat, 08 Dec 2012 20:23:13 +0400
changeset 8274 7324298dbcc1
parent 8272 93d8c77a13e8
child 8277 cd2bae15a9a3
child 8278 9cdfcb5b7ddd
Unbreak build
QTfrontend/ui/page/pagefeedback.cpp
--- 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";