From d05d3f79b3ca9a923bfcd5c3979ebfcc8796fa9e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 19 Mar 2020 01:01:10 +0100 Subject: Fix: don't use Linux specific st_mtim stat member Always access the st_mtime field, which on Linux is #defined to a member of st_mtim. This fixes a travis CI build failure on Mac OS X. Signed-off-by: David Oberhollenzer --- mkfs/dirscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkfs') diff --git a/mkfs/dirscan.c b/mkfs/dirscan.c index 824fba5..dbc862c 100644 --- a/mkfs/dirscan.c +++ b/mkfs/dirscan.c @@ -254,7 +254,7 @@ static int populate_dir(int dir_fd, fstree_t *fs, tree_node_t *root, } if (!(flags & DIR_SCAN_KEEP_TIME)) - sb.st_mtim = fs->defaults.st_mtim; + sb.st_mtime = fs->defaults.st_mtime; n = fstree_mknode(root, ent->d_name, strlen(ent->d_name), extra, &sb); -- cgit v1.2.3