]> git.pld-linux.org Git - packages/elfutils.git/blob - elfutils-alpha-stat.patch
- gcc 3.4 fixes / stage 1.
[packages/elfutils.git] / elfutils-alpha-stat.patch
1 --- elfutils-0.89/src/strip.c.orig      2003-09-26 06:01:49.000000000 +0000
2 +++ elfutils-0.89/src/strip.c   2004-01-16 11:58:12.000000000 +0000
3 @@ -265,8 +265,16 @@
4  
5        /* If we have to preserve the timestamp, we need it in the
6          format utimes() understands.  */
7 +#ifndef __alpha__
8        TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
9        TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
10 +#else
11 +      /* there is no ns-precition stat on alpha(?) */
12 +      tv[0].tv_sec = pre_st.st_atime;
13 +      tv[0].tv_usec = 0;
14 +      tv[1].tv_sec = pre_st.st_mtime;
15 +      tv[1].tv_usec = 0;
16 +#endif
17      }
18  
19    /* Open the file.  */
This page took 0.058991 seconds and 3 git commands to generate.