From owner-svn-src-all@FreeBSD.ORG Fri Oct 26 14:29:58 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CA8ADE9; Fri, 26 Oct 2012 14:29:58 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 043868FC0A; Fri, 26 Oct 2012 14:29:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9QETvSw018162; Fri, 26 Oct 2012 14:29:57 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9QETv3c018160; Fri, 26 Oct 2012 14:29:57 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201210261429.q9QETv3c018160@svn.freebsd.org> From: Nathan Whitehorn Date: Fri, 26 Oct 2012 14:29:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242132 - head/sys/dev/drm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 14:29:58 -0000 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 #include +#if _BYTE_ORDER == _BIG_ENDIAN +#define __BIG_ENDIAN 1 +#else +#define __LITTLE_ENDIAN 1 +#endif #include #include #include