#include <pthread.h>
#include "common.h"
#include "runtime.h"
-#include "runtime_local.h"
+#include "rlocal.h"
#include "mem.h"
#include "tls.h"
void *restrict arg;
} thread_info_t;
-void nbd_init (void) {
+__attribute__ ((constructor)) void nbd_init (void) {
sranddev();
INIT_THREAD_LOCAL(rand_seed_);
INIT_THREAD_LOCAL(tid_);