https://issues.apache.org/activemq/browse/AMQCPP-295

git-svn-id: https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.1.x@953278 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp b/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp
index 6ec3fdf..a100a95 100644
--- a/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp
+++ b/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp
@@ -486,7 +486,11 @@
     abstime.tv_sec = TimeUnit::NANOSECONDS.toSeconds( delay );
     abstime.tv_nsec = delay % 1000000000;
 
+#ifdef HAVE_PTHREAD_H
     unsigned int result = pthread_cond_timedwait( &condition, &lock->handle, &abstime );
+#else
+
+#endif
 
     // restore the owner
     lock->lock_owner = lock_owner;