[asterisk-commits] mvanbaak: trunk r169327 - /trunk/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 19 12:36:24 CST 2009


Author: mvanbaak
Date: Mon Jan 19 12:36:24 2009
New Revision: 169327

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169327
Log:
Make asterisk compile on non-amd64 versions of OpenBSD.

The HW_PHYSMEM64 is only available in latest OpenBSD and/or amd64 versions of OpenBSD.
Use HW_PHYSMEM when HW_PHYSMEM64 is not available.

(closes issue #14129)
Reported by: ys
Patches:
      2009011600_physmem64.diff.txt uploaded by mvanbaak (license 7)
Tested by: mvanbaak, jtodd

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/asterisk.c?view=diff&rev=169327&r1=169326&r2=169327
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Mon Jan 19 12:36:24 2009
@@ -587,7 +587,7 @@
 	uptime = uptime/3600;
 	/* grab total physical memory  */
 	mib[0] = CTL_HW;
-#if defined(__OpenBSD__)
+#if defined(HW_PHYSMEM64)
 	mib[1] = HW_PHYSMEM64;
 #else
 	mib[1] = HW_PHYSMEM;




More information about the asterisk-commits mailing list