[PATCH:xf86-video-siliconmotion 1/2] Fix endian detection on NetBSD.

Thomas Klausner wiz at NetBSD.org
Mon Sep 14 09:39:36 PDT 2015


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
+
 #define PCI_VENDOR_SMI		0x126F
 #define PCI_CHIP_SMI910		0x0910
 #define PCI_CHIP_SMI810		0x0810
-- 
2.5.2



More information about the xorg-devel mailing list