Skip to content

Commit 03ae6be

Browse files
committed
Fix internal/syscall/unix to compile with Go 1.16.
Looks like a few new functions were added to the package, with a few new constants. Neither of them are really relevant in the JS context and arguably we shouldn't be compiling this code in the first place (see issue #991), but this lets the package compile for now.
1 parent e8b8f83 commit 03ae6be

File tree

1 file changed

+6
-2
lines changed
  • compiler/natives/src/internal/syscall/unix

1 file changed

+6
-2
lines changed

compiler/natives/src/internal/syscall/unix/unix.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ package unix
44

55
import "syscall"
66

7-
const randomTrap = 0
8-
const fstatatTrap = 0
7+
const (
8+
randomTrap uintptr = 0
9+
fstatatTrap uintptr = 0
10+
getrandomTrap uintptr = 0
11+
copyFileRangeTrap uintptr = 0
12+
)
913

1014
func IsNonblock(fd int) (nonblocking bool, err error) {
1115
return false, nil

0 commit comments

Comments
 (0)