From 5cc22b9326ca520f8774d75166b000bcc2424dd4 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 27 Jun 2010 00:05:03 +0000 Subject: [PATCH] I was working in the wrong checkout in my last commit... revert it, and make the constructor-ness conditional on not being "standalone". --- umem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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