summaryrefslogtreecommitdiff
path: root/src/pkg/os/getwd_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/os/getwd_darwin.go')
-rw-r--r--src/pkg/os/getwd_darwin.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pkg/os/getwd_darwin.go b/src/pkg/os/getwd_darwin.go
new file mode 100644
index 000000000..e51ffcd5e
--- /dev/null
+++ b/src/pkg/os/getwd_darwin.go
@@ -0,0 +1,15 @@
+// Copyright 2009 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.
+
+package os
+
+import "syscall"
+
+func init() {
+ useSyscallwd = useSyscallwdDarwin
+}
+
+func useSyscallwdDarwin(err error) bool {
+ return err != syscall.ENOTSUP
+}