diff options
Diffstat (limited to 'src/ifuse.c')
-rw-r--r-- | src/ifuse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index 9fafb47..2db42c7 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -250,6 +250,11 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) } else if (!strcmp(info[i], "st_mtime")) { stbuf->st_mtime = (time_t)(atoll(info[i+1]) / 1000000000); } +#ifdef _DARWIN_FEATURE_64_BIT_INODE + else if (!strcmp(info[i], "st_birthtime")) { /* available on iOS 7+ */ + stbuf->st_birthtimespec = (time_t)(atoll(info[i+1]) / 1000000000); + } +#endif } free_dictionary(info); |