Make sure to define __BIG_ENDIAN and __LITTLE_ENDIAN with the appropriate

number of underscores for Linux compatibility in drm(4).

Submitted by:	sendtomatt at gmail dot com
MFC after:	2 weeks
This commit is contained in:
Nathan Whitehorn 2012-10-26 14:29:57 +00:00
parent e8f6ee4a99
commit 20d85134d8

View File

@ -85,6 +85,11 @@ struct drm_file;
#endif
#include <machine/sysarch.h>
#include <sys/endian.h>
#if _BYTE_ORDER == _BIG_ENDIAN
#define __BIG_ENDIAN 1
#else
#define __LITTLE_ENDIAN 1
#endif
#include <sys/mman.h>
#include <sys/rman.h>
#include <sys/memrange.h>