diff options
author | Daniel Jacobowitz <dan@debian.org> | 2005-11-03 16:06:11 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2005-11-03 16:06:11 +0000 |
commit | 736a7992712a8452a0768917a1ab41fb88bdb6a6 (patch) | |
tree | 7411a8c8fb8b9fb55d2e4f017613674cb7e0dc85 /bfd/cache.c | |
parent | 7ae5a71c443012bfdd95cb3dd466f25bd0d1175e (diff) | |
download | gdb-736a7992712a8452a0768917a1ab41fb88bdb6a6.tar.gz |
* configure.in: Check for fopen64.
* libbfd-in.h (real_fopen): New prototype.
* configure, config.in, libbfd.h: Regenerated.
* bfdio.c (real_fopen): New function.
* opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it.
* cache.c (bfd_open_file): Likewise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r-- | bfd/cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/cache.c b/bfd/cache.c index ef4a006b40e..6db6a6b4d56 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -476,15 +476,15 @@ bfd_open_file (bfd *abfd) { case read_direction: case no_direction: - abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_RB); + abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_RB); break; case both_direction: case write_direction: if (abfd->opened_once) { - abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_RUB); + abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_RUB); if (abfd->iostream == NULL) - abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WUB); + abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_WUB); } else { @@ -514,7 +514,7 @@ bfd_open_file (bfd *abfd) if (stat (abfd->filename, &s) == 0 && s.st_size != 0) unlink_if_ordinary (abfd->filename); #endif - abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WUB); + abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_WUB); abfd->opened_once = TRUE; } break; |