urcu: Move urcu_init within ifdef
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 23 Sep 2009 23:18:06 +0000 (19:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 23 Sep 2009 23:18:06 +0000 (19:18 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu.c

diff --git a/urcu.c b/urcu.c
index a8f85c6f02199d4ecdfb20b1a0098cef213c138c..32f74880492ce40527c8b5b40560249eac485b90 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -37,6 +37,8 @@
 #include "urcu.h"
 
 #ifndef URCU_MB
+static int init_done;
+
 void __attribute__((constructor)) urcu_init(void);
 void __attribute__((destructor)) urcu_exit(void);
 #else
@@ -45,8 +47,6 @@ void urcu_init(void)
 }
 #endif
 
-static int init_done;
-
 static pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 /*
This page took 0.025587 seconds and 4 git commands to generate.