$OpenBSD$
--- indra/llcommon/llapr.h.orig	Wed Nov  7 20:18:06 2007
+++ indra/llcommon/llapr.h	Sat Dec  1 16:11:56 2007
@@ -34,18 +34,25 @@
 #ifndef LL_LLAPR_H
 #define LL_LLAPR_H
 
-#if LL_LINUX || LL_SOLARIS
+#if LL_LINUX || LL_SOLARIS || defined(__OpenBSD__)
 #include <sys/param.h>  // Need PATH_MAX in APR headers...
 #endif
 
 #include <boost/noncopyable.hpp>
 
-#include "apr-1/apr_thread_proc.h"
-#include "apr-1/apr_thread_mutex.h"
-#include "apr-1/apr_getopt.h"
-#include "apr-1/apr_signal.h"
-#include "apr-1/apr_atomic.h"
+#include "apr-1-mt/apr_thread_proc.h"
+#include "apr-1-mt/apr_thread_mutex.h"
+#include "apr-1-mt/apr_getopt.h"
+#include "apr-1-mt/apr_signal.h"
+#include "apr-1-mt/apr_atomic.h"
 #include "llstring.h"
+#include <pthread.h>
+
+struct apr_thread_mutex_t {
+    apr_pool_t *pool;
+    pthread_mutex_t mutex;
+};
+typedef struct apr_thread_mutex_t apr_thread_mutex_t;
 
 extern apr_thread_mutex_t* gLogMutexp;
 
