-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add wrapper for osfile.Truncate function to restore ability to b…
…uild wazero bare metal using TinyGo 0.33 Signed-off-by: deadprogram <[email protected]>
- Loading branch information
1 parent
dbc4b62
commit 483bc44
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build !tinygo | ||
|
||
package sysfs | ||
|
||
import "os" | ||
|
||
func truncate(file *os.File, size int64) error { | ||
return file.Truncate(size) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build tinygo | ||
|
||
package sysfs | ||
|
||
import "os" | ||
|
||
func truncate(file *os.File, size int64) error { | ||
return nil | ||
} |