Menu

#46 ssgLoadFLT.cxx missing <sys/types.h> include on MacOS X

open
nobody
None
5
2011-04-14
2011-04-14
Hauke Fath
No

When built on MacOS X 10.6, "src/ssg/ssgLoadFLT.cxx" fails to compile because it does not know about ushort and uint. It runs into this because none of the #included headers defines endianness.

While this should be handled by the autoconf framework, the attached patch conditionally pulls in <sys/types.h> which in return #includes <machine/endian.h> and friends, who provide BYTE_ORDER.

Discussion

  • Hauke Fath

    Hauke Fath - 2011-04-14

    Include <sys types.h=""> on MacOS X

     
  • Hauke Fath

    Hauke Fath - 2011-04-14

    -- I should mention that I built the games/plib package from pkgsrc <http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/games/plib/> on snow leopard, not the "standalone" sources.

     

Log in to post a comment.