Skip to content

Commit 766efc9

Browse files
committed
Auto merge of #1996 - whitequark:patch-1, r=JohnTitor
Declare `seekdir` and `telldir` for Android These declarations are the same as those for other platforms. They are available [since API level 23](https://github.com/aosp-mirror/platform_bionic/blob/29cff99e08746f8060f32eba03df3b95acf1163d/libc/include/dirent.h#L145-L163).
2 parents 3f9b323 + 8b6fb59 commit 766efc9

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+2
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,6 +2465,8 @@ extern "C" {
24652465
pub fn setutent();
24662466
pub fn getutent() -> *mut utmp;
24672467

2468+
pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long);
2469+
pub fn telldir(dirp: *mut ::DIR) -> ::c_long;
24682470
pub fn fallocate(
24692471
fd: ::c_int,
24702472
mode: ::c_int,

0 commit comments

Comments
 (0)