]> pd.if.org Git - nbds/blobdiff - runtime/runtime.c
fix compiler warnings/error under gcc 4.1 and 4.2
[nbds] / runtime / runtime.c
index b145faa872e5826ed70a979d724a561cdc24738a..ceb67729f79ba7e7518736cf9d6812607630520f 100644 (file)
@@ -20,11 +20,12 @@ typedef struct thread_info {
     void *restrict arg;
 } thread_info_t;
 
-__attribute__ ((constructor(102))) void nbd_init (void) {
+__attribute__ ((constructor)) void nbd_init (void) {
     //sranddev();
     INIT_THREAD_LOCAL(rand_seed_);
     INIT_THREAD_LOCAL(tid_);
     SET_THREAD_LOCAL(tid_, 0);
+    mem_init();
     lwt_thread_init(0);
     rcu_thread_init(0);
 }