diff options
Diffstat (limited to 'dev-libs/elfutils/files')
-rw-r--r-- | dev-libs/elfutils/files/elfutils-0.89-atime.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-libs/elfutils/files/elfutils-0.89-atime.diff b/dev-libs/elfutils/files/elfutils-0.89-atime.diff new file mode 100644 index 000000000000..489eb8a6b107 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.89-atime.diff @@ -0,0 +1,18 @@ +--- elfutils-0.89/src/strip.c.old 2003-10-26 22:08:04.000000000 -0500 ++++ elfutils-0.89/src/strip.c 2003-10-26 22:08:12.000000000 -0500 +@@ -265,8 +265,15 @@ + + /* If we have to preserve the timestamp, we need it in the + format utimes() understands. */ ++#ifndef __alpha + TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim); + TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim); ++#else ++ tv[0].tv_sec = pre_st.st_atime; ++ tv[0].tv_usec = 0; ++ tv[1].tv_sec = pre_st.st_mtime; ++ tv[1].tv_usec = 0; ++#endif + } + + /* Open the file. */ |