summaryrefslogtreecommitdiff
path: root/devel/hdf/patches/patch-aq
blob: a22f2a36288f5ffa351926b31fec776c56316558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-aq,v 1.2 2001/04/19 00:56:34 jtb Exp $

--- mfhdf/libsrc/array.c.orig	Thu Apr 19 00:27:02 2001
+++ mfhdf/libsrc/array.c
@@ -6,6 +6,11 @@
 
 #include	<string.h>
+#include        <sys/endian.h>
 #include	"local_nc.h"
 #include	"alloc.h"
+
+#if BYTE_ORDER == LITTLE_ENDIAN
+#define SWAP 1
+#endif
 
 #ifdef NO_MEM_FUNCTS