On 09/14/15 09:39 AM, Thomas Klausner wrote:
NetBSD provides BYTE_ENDIAN, but this driver looks for __BYTE_ENDIAN.
---
  src/smi.h | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/src/smi.h b/src/smi.h
index 5e44892..f3227e0 100644
--- a/src/smi.h
+++ b/src/smi.h
@@ -67,6 +67,12 @@ authorization from the XFree86 Project and Silicon Motion.
  /*                    D E F I N I T I O N S                                 */
  
/******************************************************************************/

+#ifdef __NetBSD__
+#define __BYTE_ORDER BYTE_ORDER
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __BIG_ENDIAN BIG_ENDIAN
+#endif
+

Should it be including <X11/Xarch.h> instead?   (Actual question - I don't know
the answer, just know that's an already existing definition of those symbols.)

--
        -Alan Coopersmith-              [email protected]
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to