From b4402a49b6c9a87f27c2140beacf46ef95738455 Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Sun, 29 Jul 2012 18:51:06 -0400 Subject: [PATCH] runtime/cgo: fix netbsd build Copy over freebsd.c to netbsd.c. Fixes #3823. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6398045 --- src/pkg/runtime/cgo/netbsd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/pkg/runtime/cgo/netbsd.c diff --git a/src/pkg/runtime/cgo/netbsd.c b/src/pkg/runtime/cgo/netbsd.c new file mode 100644 index 0000000000..b6403f686c --- /dev/null +++ b/src/pkg/runtime/cgo/netbsd.c @@ -0,0 +1,13 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Supply environ and __progname, because we don't +// link against the standard NetBSD crt0.o and the +// libc dynamic library needs them. + +char *environ[1]; +char *__progname; + +#pragma dynexport environ environ +#pragma dynexport __progname __progname -- 2.48.1