From: Benny Siegert Date: Sun, 29 Jul 2012 22:51:06 +0000 (-0400) Subject: runtime/cgo: fix netbsd build X-Git-Tag: go1.1rc2~2759 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b4402a49b6c9a87f27c2140beacf46ef95738455;p=gostls13.git 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 --- 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