From c309eac2074a11c52d122e543d197103c6020f6c Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 9 Aug 2007 14:22:03 +0000 Subject: [PATCH] * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion. --- bfd/ChangeLog | 4 ++++ bfd/opncls.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 03bdac1df74..eb5b3e0ea3c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-08-09 Jan Kratochvil + + * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion. + 2007-08-07 Nick Clifton * po/bfd.pot: Updated template. diff --git a/bfd/opncls.c b/bfd/opncls.c index 02066d8c1ec..3d02c32fb66 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); -- 2.30.2