summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-am
blob: 0a6bee0e962898cf90f3d443b15e1d5204b00a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-am,v 1.2 2011/05/22 19:11:42 dholland Exp $

- Config for netbsd.

--- dpteng/osd_util.h.orig	Fri Dec 13 14:57:20 2002
+++ dpteng/osd_util.h	Fri Dec 13 15:03:59 2002
@@ -108,6 +108,15 @@
 /* OS dependent defines */
 /*--------------------- */
 
+#ifdef __NetBSD__
+#  if defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__)
+#    define _DPT_BIG_ENDIAN
+#  endif
+#  if defined(_DPT_BIG_ENDIAN) || defined(__alpha__)
+#    define _DPT_STRICT_ALIGN
+#  endif
+#endif
+
 #if defined (_DPT_MSDOS) || defined (_DPT_WIN_3X)
    #define      _DPT_16_BIT
 #else