summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-am
blob: 7b9b5420026ff9821f560423c01e80c42d306bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-am,v 1.1 2003/01/27 23:39:04 ad Exp $

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