Date: Fri, 26 Oct 2012 14:29:57 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242132 - head/sys/dev/drm Message-ID: <201210261429.q9QETv3c018160@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210261429.q9QETv3c018160>