mirror of https://github.com/golang/go.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
This commit is contained in:
parent
3294404900
commit
b4402a49b6
|
|
@ -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
|
||||
Loading…
Reference in New Issue