asintl.h/bucomm.h/ld.h: Prevent the inclusion of <libintl.h> from the Solaris
[binutils-gdb.git] / gdb / solib.c
index dd885a92ed43c9928f621180eaa5cce648ba9689..19e7ff7e561d983197a176e372c3092c1836e465 100644 (file)
@@ -277,7 +277,7 @@ solib_map_sections (void *arg)
     }
 
   /* Leave scratch_pathname allocated.  abfd->name will point to it.  */
-  abfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan);
+  abfd = bfd_fopen (scratch_pathname, gnutarget, FOPEN_RB, scratch_chan);
   if (!abfd)
     {
       close (scratch_chan);