summaryrefslogtreecommitdiff
path: root/lib/common/WaitForEvent.cpp
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-07 16:34:47 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-07 16:34:47 +0000
commit81d8eda2419e7a23088a98cdfc52a305c9ceac0d (patch)
tree27143d7b539a8bf2e23cc18e2f598804fa8d784d /lib/common/WaitForEvent.cpp
parent065dc6f8cd168e3ee6e71ddfb06f42a92abfabbd (diff)
Merged martin/autoconf at r35 to trunk
Diffstat (limited to 'lib/common/WaitForEvent.cpp')
-rw-r--r--lib/common/WaitForEvent.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/common/WaitForEvent.cpp b/lib/common/WaitForEvent.cpp
index e9ee58d2..c552bb12 100644
--- a/lib/common/WaitForEvent.cpp
+++ b/lib/common/WaitForEvent.cpp
@@ -25,7 +25,7 @@
// Created: 9/3/04
//
// --------------------------------------------------------------------------
-#ifndef PLATFORM_KQUEUE_NOT_SUPPORTED
+#ifdef HAVE_KQUEUE
WaitForEvent::WaitForEvent(int Timeout)
: mKQueue(::kqueue()),
mpTimeout(0)
@@ -56,7 +56,7 @@ WaitForEvent::WaitForEvent(int Timeout)
// --------------------------------------------------------------------------
WaitForEvent::~WaitForEvent()
{
-#ifndef PLATFORM_KQUEUE_NOT_SUPPORTED
+#ifdef HAVE_KQUEUE
::close(mKQueue);
mKQueue = -1;
#else
@@ -79,7 +79,7 @@ WaitForEvent::~WaitForEvent()
// --------------------------------------------------------------------------
void WaitForEvent::SetTimeout(int Timeout)
{
-#ifndef PLATFORM_KQUEUE_NOT_SUPPORTED
+#ifdef HAVE_KQUEUE
// Generate timeout
if(Timeout != TimeoutInfinite)
{
@@ -106,7 +106,7 @@ void WaitForEvent::SetTimeout(int Timeout)
// --------------------------------------------------------------------------
void *WaitForEvent::Wait()
{
-#ifndef PLATFORM_KQUEUE_NOT_SUPPORTED
+#ifdef HAVE_KQUEUE
// Event return structure
struct kevent e;
::memset(&e, 0, sizeof(e));