Skip to content

Commit 689fee5

Browse files
author
Jorge Aparicio
committed
same treatment for arm and asmjs
1 parent 37db5af commit 689fee5

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

src/unix/notbsd/linux/musl/b32/arm.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,12 @@ s! {
234234
pub st_size: ::off_t,
235235
pub st_blksize: ::blksize_t,
236236
pub st_blocks: ::blkcnt_t,
237-
pub st_atim: ::timespec,
238-
pub st_mtim: ::timespec,
239-
pub st_ctim: ::timespec,
237+
pub st_atime: ::time_t,
238+
pub st_atime_nsec: ::c_long,
239+
pub st_mtime: ::time_t,
240+
pub st_mtime_nsec: ::c_long,
241+
pub st_ctime: ::time_t,
242+
pub st_ctime_nsec: ::c_long,
240243
pub st_ino: ::ino_t,
241244
}
242245

@@ -253,9 +256,12 @@ s! {
253256
pub st_size: ::off_t,
254257
pub st_blksize: ::blksize_t,
255258
pub st_blocks: ::blkcnt_t,
256-
pub st_atim: ::timespec,
257-
pub st_mtim: ::timespec,
258-
pub st_ctim: ::timespec,
259+
pub st_atime: ::time_t,
260+
pub st_atime_nsec: ::c_long,
261+
pub st_mtime: ::time_t,
262+
pub st_mtime_nsec: ::c_long,
263+
pub st_ctime: ::time_t,
264+
pub st_ctime_nsec: ::c_long,
259265
pub st_ino: ::ino_t,
260266
}
261267

src/unix/notbsd/linux/musl/b32/asmjs.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,12 @@ s! {
234234
pub st_size: ::off_t,
235235
pub st_blksize: ::blksize_t,
236236
pub st_blocks: ::blkcnt_t,
237-
pub st_atim: ::timespec,
238-
pub st_mtim: ::timespec,
239-
pub st_ctim: ::timespec,
237+
pub st_atime: ::time_t,
238+
pub st_atime_nsec: ::c_long,
239+
pub st_mtime: ::time_t,
240+
pub st_mtime_nsec: ::c_long,
241+
pub st_ctime: ::time_t,
242+
pub st_ctime_nsec: ::c_long,
240243
pub st_ino: ::ino_t,
241244
}
242245

@@ -253,9 +256,12 @@ s! {
253256
pub st_size: ::off_t,
254257
pub st_blksize: ::blksize_t,
255258
pub st_blocks: ::blkcnt_t,
256-
pub st_atim: ::timespec,
257-
pub st_mtim: ::timespec,
258-
pub st_ctim: ::timespec,
259+
pub st_atime: ::time_t,
260+
pub st_atime_nsec: ::c_long,
261+
pub st_mtime: ::time_t,
262+
pub st_mtime_nsec: ::c_long,
263+
pub st_ctime: ::time_t,
264+
pub st_ctime_nsec: ::c_long,
259265
pub st_ino: ::ino_t,
260266
}
261267

0 commit comments

Comments
 (0)