summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-11-03 00:47:20 +0000
committerChris Wilson <chris+github@qwirx.com>2007-11-03 00:47:20 +0000
commit4638a18d1298b87394f3820df4a684eece9c9b5b (patch)
tree17009712373c9ec2b3104bfd28073c5ba49e2783 /lib
parentb8a43ce275cbc019cc30030897dfa5a271ff823e (diff)
sigemptyset() is a macro on OSX 10.3, so don't prepend ::
Diffstat (limited to 'lib')
-rw-r--r--lib/common/Timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/Timer.cpp b/lib/common/Timer.cpp
index 2e146aa3..57ec6ce6 100644
--- a/lib/common/Timer.cpp
+++ b/lib/common/Timer.cpp
@@ -42,7 +42,7 @@ void Timers::Init()
struct sigaction newact, oldact;
newact.sa_handler = Timers::SignalHandler;
newact.sa_flags = SA_RESTART;
- ::sigemptyset(&newact.sa_mask);
+ sigemptyset(&newact.sa_mask);
if (::sigaction(SIGALRM, &newact, &oldact) != 0)
{
BOX_ERROR("Failed to install signal handler");
@@ -80,7 +80,7 @@ void Timers::Cleanup()
struct sigaction newact, oldact;
newact.sa_handler = SIG_DFL;
newact.sa_flags = SA_RESTART;
- ::sigemptyset(&newact.sa_mask);
+ sigemptyset(&(newact.sa_mask));
if (::sigaction(SIGALRM, &newact, &oldact) != 0)
{
BOX_ERROR("Failed to remove signal handler");