aboutsummaryrefslogtreecommitdiff
path: root/m4/tuklib_physmem.m4
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-03-29 22:13:48 +0300
committerLasse Collin <lasse.collin@tukaani.org>2015-03-29 22:13:48 +0300
commit25263fd9e7a8a913395cb93d7c104cd48c2b4a00 (patch)
tree0c91dcc8ea5ebd2643418cf2ecdd02b5213a50e7 /m4/tuklib_physmem.m4
parentFix CPU core count detection on QNX. (diff)
downloadxz-25263fd9e7a8a913395cb93d7c104cd48c2b4a00.tar.xz
Fix the detection of installed RAM on QNX.
The earlier version compiled but didn't actually work since sysconf(_SC_PHYS_PAGES) always fails (or so I was told). Thanks to Ole André Vadla Ravnås for the patch and testing.
Diffstat (limited to 'm4/tuklib_physmem.m4')
-rw-r--r--m4/tuklib_physmem.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/tuklib_physmem.m4 b/m4/tuklib_physmem.m4
index ea02208f..8a57ca29 100644
--- a/m4/tuklib_physmem.m4
+++ b/m4/tuklib_physmem.m4
@@ -10,8 +10,8 @@
#
# Supported methods:
#
-# - Windows (including Cygwin), OS/2, DJGPP (DOS), and OpenVMS have
-# operating-system specific functions.
+# - Windows (including Cygwin), OS/2, DJGPP (DOS), OpenVMS, AROS,
+# and QNX have operating-system specific functions.
#
# - AIX has _system_configuration.physmem.
#
@@ -54,7 +54,7 @@ AC_CACHE_CHECK([how to detect the amount of physical memory],
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__OS2__) \
|| defined(__DJGPP__) || defined(__VMS) \
- || defined(AMIGA) || defined(__AROS__)
+ || defined(AMIGA) || defined(__AROS__) || defined(__QNX__)
int main(void) { return 0; }
#else
compile error