summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Seidel <tuxus@gentoo.org>2004-02-22 22:32:05 +0000
committerJan Seidel <tuxus@gentoo.org>2004-02-22 22:32:05 +0000
commit7710f464e835496b6c023751247c59a12e37aecb (patch)
treef39bc53db40dd1ccd19a3de1fceacf76e5389c24 /dev-libs/elfutils/files
parentRemove arm keywords (Manifest recommit) (diff)
downloadgentoo-2-7710f464e835496b6c023751247c59a12e37aecb.tar.gz
gentoo-2-7710f464e835496b6c023751247c59a12e37aecb.tar.bz2
gentoo-2-7710f464e835496b6c023751247c59a12e37aecb.zip
files/elfutils-0.89-alpha-mips-atime.diff: \ Fix 0.89 compilation on mips
Diffstat (limited to 'dev-libs/elfutils/files')
-rw-r--r--dev-libs/elfutils/files/elfutils-0.89-alpha-mips-atime.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-libs/elfutils/files/elfutils-0.89-alpha-mips-atime.diff b/dev-libs/elfutils/files/elfutils-0.89-alpha-mips-atime.diff
new file mode 100644
index 000000000000..0fb2add1e69a
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.89-alpha-mips-atime.diff
@@ -0,0 +1,21 @@
+--- elfutils-0.89/src/strip.c.old 2003-09-26 08:01:49.000000000 +0200
++++ elfutils-0.89/src/strip.c 2004-02-22 22:20:42.000000000 +0100
+@@ -265,8 +265,16 @@
+
+ /* If we have to preserve the timestamp, we need it in the
+ format utimes() understands. */
+- TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
+- TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
++
++#if defined ( __alpha ) || defined ( __mips)
++ 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;
++#else
++ TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
++ TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
++#endif
+ }
+
+ /* Open the file. */