Skip to content

Commit

Permalink
wasi/{clocks/{monotonicclock,wallclock},io/poll}: add build tags and …
Browse files Browse the repository at this point in the history
…fix imports
  • Loading branch information
ydnar committed Jan 17, 2024
1 parent f096f05 commit 964e3dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion wasi/clocks/monotonicclock/monotonicclock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build wasip2

// Package monotonicclock represents the interface "wasi:clocks/monotonic-clock".
//
// WASI Monotonic Clock is a clock API intended to let users measure elapsed
Expand All @@ -12,7 +14,7 @@
// It is intended for measuring elapsed time.
package monotonicclock

import "internal/wasm/wasi/io/poll"
import "github.com/ydnar/wasm-tools-go/wasi/io/poll"

// Instant represents the type "wasi:clocks/monotonic-clock.instant".
//
Expand Down
2 changes: 2 additions & 0 deletions wasi/clocks/wallclock/wallclock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build wasip2

// Package wallclock represents the interface "wasi:clocks/wall-clock".
//
// WASI Wall Clock is a clock API intended to let users query the current
Expand Down
4 changes: 3 additions & 1 deletion wasi/io/poll/poll.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//go:build wasip2

// Package poll represents the imported interface "wasi:io/poll".
//
// A poll API intended to let users wait for I/O events on multiple handles
// at once.
package poll

import "internal/wasm/cm"
import "github.com/ydnar/wasm-tools-go/cm"

// Pollable represents the imported type "wasi:io/poll.pollable".
//
Expand Down

0 comments on commit 964e3dd

Please sign in to comment.