summaryrefslogtreecommitdiff
blob: 489eb8a6b1073f937f440d879d46cf2ac424148b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.  */