Another HP-UX IA64 Build patch

James E Wilson wilson@specifixinc.com
Thu May 5 20:12:00 GMT 2005


On Thu, 2005-05-05 at 10:14, Steve Ellcey wrote:
> Here is the second of my IA64 HP-UX build patches.  This one involves
> the declaration of basename() in include/libiberty.h.  What do people
> think about using the prototype version whenever we are compiling with
> GCC?

Never mind, I see the problem.  The question about the prototype
confused me, and put me on the wrong track.  Try this patch.  We need to
include sysdep.h before libiberty.h, so that libiberty.h gets the proper
HAVE_DECL_BASENAME definition.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

-------------- next part --------------
2005-05-05  James E Wilson  <wilson@specifixinc.com>

	* ia64-opc.c: Include sysdep.h before libiberty.h.

Index: ia64-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/ia64-opc.c,v
retrieving revision 1.8
diff -p -p -r1.8 ia64-opc.c
*** ia64-opc.c	3 Mar 2005 11:49:49 -0000	1.8
--- ia64-opc.c	5 May 2005 20:05:54 -0000
***************
*** 20,27 ****
     02111-1307, USA.  */
  
  #include "ansidecl.h"
- #include "libiberty.h"
  #include "sysdep.h"
  #include "ia64-asmtab.h"
  #include "ia64-asmtab.c"
  
--- 20,27 ----
     02111-1307, USA.  */
  
  #include "ansidecl.h"
  #include "sysdep.h"
+ #include "libiberty.h"
  #include "ia64-asmtab.h"
  #include "ia64-asmtab.c"
  


More information about the Binutils mailing list