| 1 | // Copyright 2010 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build netbsd |
| 6 | |
| 7 | package fakecgo |
| 8 | |
| 9 | import _ "unsafe" // for go:linkname |
| 10 | |
| 11 | // 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 | |
| 15 | //go:linkname _environ environ |
| 16 | //go:linkname _progname __progname |
| 17 | //go:linkname ___ps_strings __ps_strings |
| 18 | |
| 19 | var ( |
| 20 | _environ uintptr |
| 21 | _progname uintptr |
| 22 | ___ps_strings uintptr |
| 23 | ) |