This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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