git: 4e57c2aa307d - main - makefs: Fix build on systems without st_birthtime such as Linux
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Jun 2026 15:38:01 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=4e57c2aa307d34ca6e44f01c6fd671734ed5e486
commit 4e57c2aa307d34ca6e44f01c6fd671734ed5e486
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-06-25 15:37:55 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-06-25 15:37:55 +0000
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
---
usr.sbin/makefs/cd9660/iso9660_rrip.c | 5 +++++
1 file changed, 5 insertions(+)
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,