aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-06-25 15:37:55 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-06-25 15:37:55 +0000
commit4e57c2aa307d34ca6e44f01c6fd671734ed5e486 (patch)
tree3e13cdc8464329500aad49329c1a8f3abbffcdb0
parentc82aeee8a6d39371006f5eeb1b51704e7b97e2b7 (diff)
makefs: Fix build on systems without st_birthtime such as Linux
Reviewed by: emaste Fixes: 0a301f33306c ("makefs cd9660: Populate creation time stamps in RockRidge extensions") Pull Request: https://github.com/freebsd/freebsd-src/pull/2297
-rw-r--r--usr.sbin/makefs/cd9660/iso9660_rrip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/makefs/cd9660/iso9660_rrip.c b/usr.sbin/makefs/cd9660/iso9660_rrip.c
index ee84407e1344..a4a8ea85c559 100644
--- a/usr.sbin/makefs/cd9660/iso9660_rrip.c
+++ b/usr.sbin/makefs/cd9660/iso9660_rrip.c
@@ -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,