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/opncls.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/opncls.c')
-rw-r--r-- | bfd/opncls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index 68a2f3cd116..63f7b74d63e 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -175,7 +175,7 @@ bfd_fopen (const char *filename, const char *target, const char *mode, int fd) nbfd->iostream = fdopen (fd, mode); else #endif - nbfd->iostream = fopen (filename, mode); + nbfd->iostream = real_fopen (filename, mode); if (nbfd->iostream == NULL) { bfd_set_error (bfd_error_system_call); @@ -1407,7 +1407,7 @@ bfd_fill_in_gnu_debuglink_section (bfd *abfd, .gnu_debuglink section, we insist upon the user providing us with a correct-for-section-creation-time path, but this need not conform to the gdb location algorithm. */ - handle = fopen (filename, FOPEN_RB); + handle = real_fopen (filename, FOPEN_RB); if (handle == NULL) { bfd_set_error (bfd_error_system_call); |