From: Russ Cox Date: Thu, 23 Jul 2015 16:19:09 +0000 (-0400) Subject: runtime/cgo: move TMPDIR magic out of os X-Git-Tag: go1.5beta3~74 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f6fb549d22a66516ae96720e9a322aad80d0aaa7;p=gostls13.git runtime/cgo: move TMPDIR magic out of os It's not clear this really belongs anywhere at all, but this is a better place for it than package os. This way package os can avoid importing "C". Fixes #10455. Change-Id: Ibe321a93bf26f478951c3a067d75e22f3d967eb7 Reviewed-on: https://go-review.googlesource.com/12574 Reviewed-by: David Crawshaw Reviewed-by: Dave Cheney --- diff --git a/src/os/file_darwin.go b/src/runtime/cgo/tmpdir_darwin.go similarity index 98% rename from src/os/file_darwin.go rename to src/runtime/cgo/tmpdir_darwin.go index ee3a954683..1239c70de9 100644 --- a/src/os/file_darwin.go +++ b/src/runtime/cgo/tmpdir_darwin.go @@ -4,7 +4,7 @@ // +build arm arm64 -package os +package cgo /* #cgo CFLAGS: -x objective-c