summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-10-26 14:29:57 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-10-26 14:29:57 +0000
commit06e6463664b1ff39cc3ff55ae51957575e1c6e56 (patch)
tree81079248abe9534674ac2676c8238bd9dfd6d9b0 /sys/dev/drm
parentbb7ab7e9bb69ab91778e41d44c29b45f9d2eca4b (diff)
downloadFreeBSD-src-06e6463664b1ff39cc3ff55ae51957575e1c6e56.zip
FreeBSD-src-06e6463664b1ff39cc3ff55ae51957575e1c6e56.tar.gz
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
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/drm/drmP.h b/sys/dev/drm/drmP.h
index 3b121e7..ffb69b4 100644
--- a/sys/dev/drm/drmP.h
+++ b/sys/dev/drm/drmP.h
@@ -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>
OpenPOWER on IntegriCloud