summaryrefslogtreecommitdiff
path: root/bfd/bfdio.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2005-11-03 16:06:11 +0000
committerDaniel Jacobowitz <dan@debian.org>2005-11-03 16:06:11 +0000
commit736a7992712a8452a0768917a1ab41fb88bdb6a6 (patch)
tree7411a8c8fb8b9fb55d2e4f017613674cb7e0dc85 /bfd/bfdio.c
parent7ae5a71c443012bfdd95cb3dd466f25bd0d1175e (diff)
downloadgdb-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/bfdio.c')
-rw-r--r--bfd/bfdio.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 5c3774adfd7..22ea886b5cb 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -63,6 +63,16 @@ real_fseek (FILE *file, file_ptr offset, int whence)
#endif
}
+FILE *
+real_fopen (const char *filename, const char *modes)
+{
+#if defined (HAVE_FOPEN64)
+ return fopen64 (filename, modes);
+#else
+ return fopen (filename, modes);
+#endif
+}
+
/*
INTERNAL_DEFINITION
struct bfd_iovec