summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uwsgi_pymodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uwsgi_pymodule.c b/uwsgi_pymodule.c
index 169329ce..7760117d 100644
--- a/uwsgi_pymodule.c
+++ b/uwsgi_pymodule.c
@@ -11,6 +11,9 @@ extern int sharedareasize ;
#ifndef __OpenBSD__
#define LOCK_SHAREDAREA pthread_mutex_lock((pthread_mutex_t *) sharedareamutex + sizeof(pthread_mutexattr_t));
#define UNLOCK_SHAREDAREA pthread_mutex_unlock((pthread_mutex_t *) sharedareamutex + sizeof(pthread_mutexattr_t));
+#else
+#define LOCK_SHAREDAREA
+#define UNLOCK_SHAREDAREA
#endif
#endif