PATCH: Add missing extern decls on m68k-motorola-sysv (was: Re: m68k problems)

Jeffrey A Law
Tue Jan 12 01:33:00 GMT 1999

  In message < >you write:
  > Since no flags are set for the fcntl.h file entry in "std_include_table[]"
  > (i.e. POSIX1_SYMBOL is 0), the POSIX1 symbols "open", "creat" and "fcntl"
  > are not considered to be "mandatory":
Ah.  It has the capability, it's just not enabled for this file.  I get it.

  > BUT, wth is POSIX1_SYMBOL 0 ??? I added definitions for ADD_MISSING_POSIX
  > and ADD_MISSING_XOPEN for my bloody Motorola systems sometime ago...
  > OK, looking for their definitions reveals, I added them to the wrong
  > files :-(  As they are TARGET specific issues, they ought to be defined
  > in the TARGET specific config files and not in the HOST specific
  > xm-${name}.h files ...&^%&*^
It happens.

  > The small patch below corrects this for my two Motorola systems (m68k and
  > m88k) verified today by building a cross compiler i586-linux ->
  > m68k-motorola-sysv and the runtime libraries without any problems.
  > OK to install?
  > manfred
  > 1999-01-10  Manfred Hollstein  <>
  > 	* m68k/mot3300.h (ADD_MISSING_POSIX, ADD_MISSING_XOPEN): Define to
  > 	ensure all prototypes necessary for building libio will be available.
  > 	* m68k/xm-mot3300.h (ADD_MISSING_POSIX, ADD_MISSING_XOPEN): Remove
  > 	definitions here as they are not host specific.
  > 	* m88k/sysv3.h, m88k/xm-sysv3.h: Likewise.
Yup it's fine.

I wonder if we'll end up needing something similar for NeXT, which I think is
what got this thread started in the first place :-)


More information about the Gcc-patches mailing list