From f6fb549d22a66516ae96720e9a322aad80d0aaa7 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 23 Jul 2015 12:19:09 -0400 Subject: [PATCH] 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 --- src/{os/file_darwin.go => runtime/cgo/tmpdir_darwin.go} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{os/file_darwin.go => runtime/cgo/tmpdir_darwin.go} (98%) 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