preload-hacks: Some patches to make it work.
[termux-packages] / packages / gdb / archive_c_st_mtime.patch
1 diff -u -r ../gdb-7.6.2/bfd/archive.c ./bfd/archive.c
2 --- ../gdb-7.6.2/bfd/archive.c 2013-12-08 05:33:13.000000000 +0100
3 +++ ./bfd/archive.c 2014-01-07 16:43:01.858311352 +0100
4 @@ -1880,7 +1880,7 @@
5 {
6 /* Assume we just "made" the member, and fake it. */
7 struct bfd_in_memory *bim = (struct bfd_in_memory *) member->iostream;
8 - time (&status.st_mtime);
9 + time ((time_t*) &status.st_mtime);
10 status.st_uid = getuid ();
11 status.st_gid = getgid ();
12 status.st_mode = 0644;