blob: 2cecd0c57a36200445845e9f2efddb04cc1f6416 [file] [log] [blame]
Brad Fitzpatrick51947442016-03-01 22:57:46 +00001// Copyright 2010 The Go Authors. All rights reserved.
Benny Siegertb4402a42012-07-29 18:51:06 -04002// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Russ Cox2cd05c32014-11-09 20:20:45 -05005// +build netbsd
6
Russ Cox9f99d532014-11-11 17:05:37 -05007package cgo
Russ Cox75cca052014-09-24 17:50:44 -04008
Russ Coxe98f2d52014-11-12 14:54:04 -05009import _ "unsafe" // for go:linkname
Russ Cox22293bb2014-11-11 23:19:59 -050010
Benny Siegertb4402a42012-07-29 18:51:06 -040011// Supply environ and __progname, because we don't
12// link against the standard NetBSD crt0.o and the
13// libc dynamic library needs them.
14
Russ Cox9f99d532014-11-11 17:05:37 -050015//go:linkname _environ environ
16//go:linkname _progname __progname
Benny Siegertb4402a42012-07-29 18:51:06 -040017
Russ Cox9f99d532014-11-11 17:05:37 -050018var _environ uintptr
19var _progname uintptr