Skip to content

Commit 3fc772c

Browse files
committed
I was working in the wrong checkout in my last commit...
revert it, and make the constructor-ness conditional on not being "standalone".
1 parent 266d447 commit 3fc772c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

umem.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3328,10 +3328,12 @@ umem_init(void)
33283328
return (0);
33293329
}
33303330

3331+
#ifndef UMEM_STANDALONE
33313332
void
3332-
__attribute__((section(".init")))
3333+
__attribute__((constructor))
33333334
__umem_init (void)
33343335
{
33353336
umem_startup(NULL, 0, 0, NULL, NULL);
33363337
}
3338+
#endif
33373339

0 commit comments

Comments
 (0)