summaryrefslogtreecommitdiff
path: root/devel/libvolume_id/patches/patch-aa
blob: 2ebd78d57535b93f9e523031383f063582462856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-aa,v 1.3 2009/01/04 23:10:06 dbj Exp $

--- ddf_raid.c.orig	2007-12-26 17:05:32.000000000 -0800
+++ ddf_raid.c	2008-12-28 16:50:36.000000000 -0800
@@ -22,9 +22,9 @@
 #include <string.h>
 #include <errno.h>
 #include <ctype.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
 #include <sys/endian.h>
-#else
+#elif !defined(__APPLE__)
 #include <byteswap.h>
 #endif /* __FreeBSD__ */