From cee8cbe23f7ab7bcba8c77a1b2366dc894c382b4 Mon Sep 17 00:00:00 2001 From: riastradh Date: Fri, 10 Apr 2015 22:38:30 +0000 Subject: [PATCH] GCC doesn't speak #pragma init, try __attribute__((constructor)). --- external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c b/external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c index 74ec177c11b7..a90903acb389 100644 --- a/external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c +++ b/external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c @@ -248,6 +248,7 @@ uu_release_child(void) } #pragma init(uu_init) +__attribute__((constructor)) static void uu_init(void) {