You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/08/09 16:49:38 UTC
svn commit: r1371235 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/System.cpp
Author: tabish
Date: Thu Aug 9 14:49:38 2012
New Revision: 1371235
URL: http://svn.apache.org/viewvc?rev=1371235&view=rev
Log:
update for https://issues.apache.org/jira/browse/AMQCPP-417
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/System.cpp
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/System.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/System.cpp?rev=1371235&r1=1371234&r2=1371235&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/System.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/System.cpp Thu Aug 9 14:49:38 2012
@@ -51,7 +51,7 @@
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
-#if defined(__HP_aCC)
+#if defined(_HP_NAMESPACE_STD)
#include <sys/mpctl.h>
#endif
@@ -514,7 +514,7 @@ int System::availableProcessors() {
len = sizeof(numCpus);
sysctl(mib, 2, &numCpus, &len, NULL, 0);
-#elif defined(__HP_aCC)
+#elif defined(_HP_NAMESPACE_STD)
numCpus = (int)mpctl(MPC_GETNUMSPUS, NULL, NULL);
#else