svn commit: r242132 - head/sys/dev/drm

Nathan Whitehorn nwhitehorn at FreeBSD.org
Fri Oct 26 14:29:58 UTC 2012


Author: nwhitehorn
Date: Fri Oct 26 14:29:57 2012
New Revision: 242132
URL: http://svn.freebsd.org/changeset/base/242132

Log:
  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

Modified:
  head/sys/dev/drm/drmP.h

Modified: head/sys/dev/drm/drmP.h
==============================================================================
--- head/sys/dev/drm/drmP.h	Fri Oct 26 13:40:12 2012	(r242131)
+++ head/sys/dev/drm/drmP.h	Fri Oct 26 14:29:57 2012	(r242132)
@@ -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>


More information about the svn-src-head mailing list