X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fiterate_dir.c;fp=src%2Fiterate_dir.c;h=940fc24b8e2c96d3635c6eb31e4d4b8407a1ec34;hp=e4eb87d7875d0c92dcbf02bdb064997df19f4240;hb=db1b9ac63e5c0a1dffb51a1a162cf69a01a5cf24;hpb=088dff37aa334c218e1cac96cc847f5dd14f7124 diff --git a/src/iterate_dir.c b/src/iterate_dir.c index e4eb87d7..940fc24b 100644 --- a/src/iterate_dir.c +++ b/src/iterate_dir.c @@ -122,17 +122,17 @@ init_wimlib_dentry(struct wimlib_dir_entry *wdentry, struct wim_dentry *dentry, wdentry->attributes = inode->i_attributes; wdentry->hard_link_group_id = inode->i_ino; - /* For Windows builds, to maintain ABI compatibility with previous - * versions of the DLLs, double-check that we're using the expected size - * for 'struct timespec'. */ -#ifdef _WIN64 - STATIC_ASSERT(sizeof(struct timespec) == 16); -#elif defined(_WIN32) - STATIC_ASSERT(sizeof(struct timespec) == 8); -#endif - wdentry->creation_time = wim_timestamp_to_timespec(inode->i_creation_time); - wdentry->last_write_time = wim_timestamp_to_timespec(inode->i_last_write_time); - wdentry->last_access_time = wim_timestamp_to_timespec(inode->i_last_access_time); + wim_timestamp_to_wimlib_timespec(inode->i_creation_time, + &wdentry->creation_time, + &wdentry->creation_time_high); + + wim_timestamp_to_wimlib_timespec(inode->i_last_write_time, + &wdentry->last_write_time, + &wdentry->last_write_time_high); + + wim_timestamp_to_wimlib_timespec(inode->i_last_access_time, + &wdentry->last_access_time, + &wdentry->last_access_time_high); if (inode_get_unix_data(inode, &unix_data)) { wdentry->unix_uid = unix_data.uid;