Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libuutil/common GCC doesn't spe...
details: https://anonhg.NetBSD.org/src/rev/7c4995bb48fa
branches: trunk
changeset: 337309:7c4995bb48fa
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Apr 10 22:38:30 2015 +0000
description:
GCC doesn't speak #pragma init, try __attribute__((constructor)).
diffstat:
external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r ec853c17d3f7 -r 7c4995bb48fa external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c
--- a/external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c Fri Apr 10 22:36:50 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c Fri Apr 10 22:38:30 2015 +0000
@@ -248,6 +248,7 @@
}
#pragma init(uu_init)
+__attribute__((constructor))
static void
uu_init(void)
{
Home |
Main Index |
Thread Index |
Old Index