Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
roothider authored Nov 13, 2024
1 parent a2724f0 commit ca23d3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cctools/libstuff/writeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,22 +312,22 @@ uint32_t *throttle)
#if 0
if (__builtin_available(macOS 10.12, *)) {
#endif /* 0 */
#ifdef HAVE_UTIMESAT
#ifdef HAVE_UTIMENSAT
struct timespec times[2] = {0};
memcpy(&times[0], &toc_timespec, sizeof(struct timespec));
memcpy(&times[1], &toc_timespec, sizeof(struct timespec));
time_result = utimensat(AT_FDCWD, output, times, 0);
#endif /* HAVE_UTIMESAT */
#endif /* HAVE_UTIMENSAT */
#if 0
}
else {
#endif /* 0 */
#ifndef HAVE_UTIMESAT
#ifndef HAVE_UTIMENSAT
struct timeval times[2] = {0};
memcpy(&times[0], &toc_timeval, sizeof(struct timeval));
memcpy(&times[1], &toc_timeval, sizeof(struct timeval));
time_result = utimes(output, times);
#endif /* !HAVE_UTIMESAT */
#endif /* !HAVE_UTIMENSAT */
#if 0
}
#endif /* 0 */
Expand Down

0 comments on commit ca23d3a

Please sign in to comment.