w3m: Avoid depending on libgc-dev when building
[termux-packages] / packages / gcc / libcpp-files.c.patch
1 diff -u -r ../gcc-4.8.2/libcpp/files.c ./libcpp/files.c
2 --- ../gcc-4.8.2/libcpp/files.c 2013-03-06 17:18:40.000000000 +0100
3 +++ ./libcpp/files.c 2014-01-09 00:29:34.940181542 +0100
4 @@ -716,11 +716,13 @@
5 cpp_error (pfile, CPP_DL_WARNING,
6 "%s is shorter than expected", file->path);
7
8 + off_t ot = (off_t) &file->st.st_size;
9 file->buffer = _cpp_convert_input (pfile,
10 CPP_OPTION (pfile, input_charset),
11 buf, size + 16, total,
12 &file->buffer_start,
13 - &file->st.st_size);
14 + &ot);
15 + file->st.st_size = ot;
16 file->buffer_valid = true;
17
18 return true;