summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-an
blob: fa1a4356d5a6c3670ef5f7bcefea1415b84ed33e (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-an,v 1.2 2011/05/22 19:11:42 dholland Exp $

Config for NetBSD.

--- dptutil/osd_util.h.orig	Fri Dec 13 14:57:20 2002
+++ dptutil/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