From c7011f43a6a3ca742cddce6aeb5a5f234c4e6f10 Mon Sep 17 00:00:00 2001 From: Dan Gohman <sunfish@mozilla.com> Date: Wed, 1 Jul 2020 23:42:35 -0700 Subject: [PATCH] Declare `seekdir` and `telldir` for WASI. These declarations are the same as those for other platforms. --- src/wasi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wasi.rs b/src/wasi.rs index 081141e4..40b91376 100644 --- a/src/wasi.rs +++ b/src/wasi.rs @@ -515,6 +515,8 @@ extern "C" { pub fn closedir(dirp: *mut ::DIR) -> ::c_int; pub fn rewinddir(dirp: *mut ::DIR); pub fn dirfd(dirp: *mut ::DIR) -> ::c_int; + pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long); + pub fn telldir(dirp: *mut ::DIR) -> ::c_long; pub fn openat( dirfd: ::c_int, -- GitLab