openssl: Ensure that bin/openssl is a pie binary
[termux-packages] / packages / gcc / libcpp-macro.c.patch
1 diff -u -r ../gcc-4.8.2/libcpp/macro.c ./libcpp/macro.c
2 --- ../gcc-4.8.2/libcpp/macro.c 2013-01-14 19:13:59.000000000 +0100
3 +++ ./libcpp/macro.c 2014-01-09 00:30:49.416179764 +0100
4 @@ -245,8 +245,10 @@
5 looks like "Sun Sep 16 01:03:52 1973". */
6 struct tm *tb = NULL;
7 struct stat *st = _cpp_get_file_stat (file);
8 - if (st)
9 - tb = localtime (&st->st_mtime);
10 + if (st) {
11 + const time_t mtime = (const time_t) st->st_mtime;
12 + tb = localtime (&mtime);
13 + }
14 if (tb)
15 {
16 char *str = asctime (tb);