aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-11-03 16:06:11 +0000
committerDaniel Jacobowitz <drow@false.org>2005-11-03 16:06:11 +0000
commit2e6f4fae0724d2926e46be477cd12c772d7e79d9 (patch)
tree91e79b112cb26de09486cf4ece65091202b81d4e /bfd/opncls.c
parent6f2942edf01d584dcc76b960a50de9f67f13e7c3 (diff)
downloadgdb-2e6f4fae0724d2926e46be477cd12c772d7e79d9.zip
gdb-2e6f4fae0724d2926e46be477cd12c772d7e79d9.tar.gz
gdb-2e6f4fae0724d2926e46be477cd12c772d7e79d9.tar.bz2
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 68a2f3c..63f7b74 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);