summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--umem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/umem.c b/umem.c
index 1e5f715..b50a27b 100644
--- a/umem.c
+++ b/umem.c
@@ -3328,10 +3328,12 @@ fail:
return (0);
}
+#ifndef UMEM_STANDALONE
void
-__attribute__((section(".init")))
+__attribute__((constructor))
__umem_init (void)
{
umem_startup(NULL, 0, 0, NULL, NULL);
}
+#endif