| 31 | | #ifndef HAVE_STRUCT_STAT_ST_MTIMESPEC |
| 32 | | box_time_t statusmodified = ((int64_t)st.st_ctime) * (MICRO_SEC_IN_SEC_LL); |
| 33 | | #else |
| 34 | | box_time_t statusmodified = (((int64_t)st.st_ctimespec.tv_nsec) / NANO_SEC_IN_USEC_LL) |
| 35 | | + (((int64_t)st.st_ctimespec.tv_sec) * (MICRO_SEC_IN_SEC_LL)); |
| | 31 | box_time_t statusmodified = |
| | 32 | #ifdef HAVE_STRUCT_STAT_ST_MTIMESPEC |
| | 33 | (((int64_t)st.st_ctimespec.tv_nsec) / (NANO_SEC_IN_USEC_LL)) + |
| | 34 | (((int64_t)st.st_ctimespec.tv_sec) * (MICRO_SEC_IN_SEC_LL)); |
| | 35 | #elif defined HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC |
| | 36 | (((int64_t)st.st_ctim.tv_nsec) / (NANO_SEC_IN_USEC_LL)) + |
| | 37 | (((int64_t)st.st_ctim.tv_sec) * (MICRO_SEC_IN_SEC_LL)); |
| | 38 | #elif defined HAVE_STRUCT_STAT_ST_ATIMENSEC |
| | 39 | (((int64_t)st.st_ctimensec) / (NANO_SEC_IN_USEC_LL)) + |
| | 40 | (((int64_t)st.st_ctime) * (MICRO_SEC_IN_SEC_LL)); |
| | 41 | #else // no nanoseconds anywhere |
| | 42 | (((int64_t)st.st_ctime) * (MICRO_SEC_IN_SEC_LL)); |