diff options
Diffstat (limited to 'src/runtime/cgo/setenv.c')
-rw-r--r-- | src/runtime/cgo/setenv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/cgo/setenv.c b/src/runtime/cgo/setenv.c new file mode 100644 index 000000000..76d88cbf1 --- /dev/null +++ b/src/runtime/cgo/setenv.c @@ -0,0 +1,13 @@ +// Copyright 2011 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. + +// +build darwin dragonfly freebsd linux netbsd openbsd + +#pragma cgo_import_static x_cgo_setenv +#pragma cgo_import_static x_cgo_unsetenv + +void x_cgo_setenv(char**); +void (*runtimeĀ·_cgo_setenv)(char**) = x_cgo_setenv; +void x_cgo_unsetenv(char**); +void (*runtimeĀ·_cgo_unsetenv)(char**) = x_cgo_unsetenv; |