From aa3e61d3123b31ab84496a6ace883984698e3c77 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Aug 2004 14:43:23 +0200 Subject: [PATCH] Compile fixes for Mac OS X --- ndb/src/kernel/main.cpp | 15 +++++++-------- ndb/test/run-test/main.cpp | 2 -- ndb/test/src/NDBT_Test.cpp | 1 - ndb/test/tools/cpcc.cpp | 1 - 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/ndb/src/kernel/main.cpp b/ndb/src/kernel/main.cpp index 24cb1820575..e68ef089498 100644 --- a/ndb/src/kernel/main.cpp +++ b/ndb/src/kernel/main.cpp @@ -250,14 +250,13 @@ systemInfo(const Configuration & config, const LogLevel & logLevel){ } -static void -handler_register(int signum, sighandler_t handler, bool ignore) -{ - if (ignore) { - if(signum != SIGCHLD) - signal(signum, SIG_IGN); - } else - signal(signum, handler); +#define handler_register(signum, handler, ignore)\ +{\ + if (ignore) {\ + if(signum != SIGCHLD)\ + signal(signum, SIG_IGN);\ + } else\ + signal(signum, handler);\ } void diff --git a/ndb/test/run-test/main.cpp b/ndb/test/run-test/main.cpp index 9d20da8c1f9..6f1899fdbe2 100644 --- a/ndb/test/run-test/main.cpp +++ b/ndb/test/run-test/main.cpp @@ -987,8 +987,6 @@ setup_hosts(atrt_config& config){ return true; } -template class Vector*>; -template class Vector; template class Vector >; template class Vector; template class Vector; diff --git a/ndb/test/src/NDBT_Test.cpp b/ndb/test/src/NDBT_Test.cpp index a93c85d3bbe..b1691c379a9 100644 --- a/ndb/test/src/NDBT_Test.cpp +++ b/ndb/test/src/NDBT_Test.cpp @@ -1138,4 +1138,3 @@ template class Vector; template class Vector; template class Vector; template class Vector; -template class Vector; diff --git a/ndb/test/tools/cpcc.cpp b/ndb/test/tools/cpcc.cpp index e1468df3290..e30d458ffee 100644 --- a/ndb/test/tools/cpcc.cpp +++ b/ndb/test/tools/cpcc.cpp @@ -347,6 +347,5 @@ Operate::evaluate(SimpleCpcClient* c, const SimpleCpcClient::Process & pp){ return true; } -template class Vector*>; template class Vector; template class Vector;