summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwez <wez@1665872d-e22b-0410-9e5d-a57ad4215e6d>2010-06-27 00:05:03 +0000
committerwez <wez@1665872d-e22b-0410-9e5d-a57ad4215e6d>2010-06-27 00:05:03 +0000
commitd0deba6f8f11c962b43c66b9091c00c814ae51b0 (patch)
treeb3f31bc13b6a95ce4c870aa5c1d055057b586219
parent39a56503b09a4a810b1ffce4bdf0fb6efc5fe08f (diff)
downloadportableumem-master.tar.gz
I was working in the wrong checkout in my last commit...HEADomniti-svn-trunkmaster
revert it, and make the constructor-ness conditional on not being "standalone". git-svn-id: https://labs.omniti.com/portableumem/trunk@61 1665872d-e22b-0410-9e5d-a57ad4215e6d
-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