summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2007-08-09 14:22:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2007-08-09 14:22:03 +0000
commit4aaedf44f04e56a8d3d40a9265d197a74ea22335 (patch)
tree2f49864007a78f5eeac97c6c7de5f73ecfeef26b /bfd/opncls.c
parent6beb151d82862c5843496394e508ff8e5ba5572a (diff)
downloadbinutils-redhat-4aaedf44f04e56a8d3d40a9265d197a74ea22335.tar.gz
* opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 02066d8c1e..3d02c32fb6 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -545,7 +545,8 @@ bfd_openr_iovec (const char *filename, const char *target,
nbfd->filename = filename;
nbfd->direction = read_direction;
- stream = open (nbfd, open_closure);
+ /* `open (...)' would get expanded by an the open(2) syscall macro. */
+ stream = (*open) (nbfd, open_closure);
if (stream == NULL)
{
_bfd_delete_bfd (nbfd);