This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-2.91.57/SunOS 4.1.3/fixincludes




  In message <199810100125.AA03294@gateway.fedex.com>you write:
  > 
  >     Hello,
  > 
  >     This is not really a bug, I have to compile some fairly old
  >     programs that are using RPC calls. I was wondering if some files
  >     could be added to the fixincludes script for SunOS 4. The one I
  >     had in mind was clnt.h, I also need svc.h to be fixed. Actually
  >     they need to be processed in the same way as xdr.h
  > 
  >     I'd be happy to provide the patch to fixincludes, but I had two
  >     questions about doing that (I hope they aren't too dumb):
  > 
  >     Do I just have to provide a block of command like for rpc/xdr.h?
  >     How does the script know which block of commands to apply?
Look at the code.  Basically it tries every fix in the fixinclude script,
so it'll try both the irix and sunos blocks.

Instead of adding a new block, I recommend you change the xdr.h block to
iterate over the files that need fixing.  There should be sample code
elsewhere in fixincludes you can copy and modify as appropriate.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]