aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscall/syscall_unix.go')
-rw-r--r--src/syscall/syscall_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/syscall_unix.go b/src/syscall/syscall_unix.go
index 56abce19cd..786ad34170 100644
--- a/src/syscall/syscall_unix.go
+++ b/src/syscall/syscall_unix.go
@@ -22,7 +22,7 @@ var (
)
const (
- darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
+ darwin64Bit = (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && sizeofPtr == 8
netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
)
@@ -110,7 +110,7 @@ func (m *mmapper) Munmap(data []byte) (err error) {
// using errors.Is. For example:
//
// _, _, err := syscall.Syscall(...)
-// if errors.Is(err, os.ErrNotExist) ...
+// if errors.Is(err, fs.ErrNotExist) ...
type Errno uintptr
func (e Errno) Error() string {