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

_______________________________________________
[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