X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=runtime%2Fruntime.c;h=14a09f9bb11f19b8a828ca1473c3681d0f9f3910;hp=c41a1bdaa895364ee9440286de33315c31dacc98;hb=a03cf3b0c40e6c3b8b4877b49a64288cb3fcb919;hpb=052506ff082f134f00834f666653819e18d9bddf diff --git a/runtime/runtime.c b/runtime/runtime.c index c41a1bd..14a09f9 100644 --- a/runtime/runtime.c +++ b/runtime/runtime.c @@ -5,7 +5,7 @@ #include #include "common.h" #include "runtime.h" -#include "runtime_local.h" +#include "rlocal.h" #include "mem.h" #include "tls.h" @@ -18,7 +18,7 @@ typedef struct thread_info { 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_);