diff options
author | Aulus Egnatius Varialus <varialus@gmail.com> | 2013-09-04 15:19:21 -0700 |
---|---|---|
committer | Aulus Egnatius Varialus <varialus@gmail.com> | 2013-09-04 15:19:21 -0700 |
commit | c2540bda4a2f4445e3dc9e9691d31619f8008baf (patch) | |
tree | d2ed6e2334895d872e3d894714e359399fc84775 /src/pkg/runtime/cgo/dragonfly.c | |
parent | 37f0c78a6c99f85a64fd3f8ac6893e8fdb0e9577 (diff) | |
download | go-c2540bda4a2f4445e3dc9e9691d31619f8008baf.tar.gz |
cgo: enable cgo on dragonfly
Enable cgo for dragonfly/386 and dragonfly/amd64.
R=golang-dev, jsing, iant, bradfitz
CC=golang-dev
https://codereview.appspot.com/13247046
Committer: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/pkg/runtime/cgo/dragonfly.c')
-rw-r--r-- | src/pkg/runtime/cgo/dragonfly.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pkg/runtime/cgo/dragonfly.c b/src/pkg/runtime/cgo/dragonfly.c new file mode 100644 index 000000000..acf53e265 --- /dev/null +++ b/src/pkg/runtime/cgo/dragonfly.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 DragonFly crt0.o and the +// libc dynamic library needs them. + +char *environ[1]; +char *__progname; + +#pragma dynexport environ environ +#pragma dynexport __progname __progname |