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:
John Baldwin committed 2026-06-25 11:37:55 -04:00
1 parent c82aeee8a6
commit 4e57c2aa30
1 file changed
+5
+5
View File
@@ -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,