XFree86-prog 4.2.0-1: Xarch.h includes nonexistant <machine/endian.h> (line 55)

Harold L Hunt huntharo@msu.edu
Tue Jun 11 11:30:00 GMT 2002


Nicholas,

> I just wanted to report that when you include Xos.h in a program, it will
> then include Xarch.h.  The problem is that Xarch.h will then try to
> include <machine/endian.h>, which doesn't exist for our platform. 
> Souldn't this be <sys/types.h>?

Wow.  That just show how few applications have been compiled on Cygwin/XFree86
to date, as no one has ever mentioned that bug before.

The idea behind machine/endian.h is to defined __LITTLE_ENDIAN, ntohl, ntohs,
htonl, etc.  The equivalent functionality in Cygwin is in asm/byteorder.h. 
byteorder.h is not included from sys/types.h (as far as I can tell) so we'll
have to include asm/byteorder.h.

Nice catch.

I'll submit a patch to XFree86 for this.

Harold



More information about the Cygwin-xfree mailing list