mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 12:48:33 -10:00
makefs: Fix build on systems without st_birthtime such as Linux
Reviewed by: emaste
Fixes: 0a301f3330 ("makefs cd9660: Populate creation time stamps in RockRidge extensions")
Pull Request: https://github.com/freebsd/freebsd-src/pull/2297
This commit is contained in:
1 parent
c82aeee8a6
commit
4e57c2aa30
1 file changed
+5
@@ -750,8 +750,13 @@ cd9660node_rrip_tf(struct ISO_SUSP_ATTRIBUTES *p, fsnode *_node)
|
||||
* expiration time, and effective time.
|
||||
*/
|
||||
|
||||
#if HAVE_STRUCT_STAT_BIRTHTIME
|
||||
cd9660_time_915(p->attr.rr_entry.TF.timestamp,
|
||||
_node->inode->st.st_birthtime);
|
||||
#else
|
||||
cd9660_time_915(p->attr.rr_entry.TF.timestamp,
|
||||
_node->inode->st.st_ctime);
|
||||
#endif
|
||||
p->attr.rr_entry.TF.h.length[0] += 7;
|
||||
|
||||
cd9660_time_915(p->attr.rr_entry.TF.timestamp + 7,
|
||||
|
||||
Reference in new issue
Block a user