blob: ffabfd24709a4947fcd4ff6019af40325a5df06d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ab,v 1.6 2014/05/05 21:13:16 ryoon Exp $
--- linux_raid.c.orig 2007-12-27 01:03:43.000000000 +0000
+++ linux_raid.c
@@ -22,9 +22,9 @@
#include <string.h>
#include <errno.h>
#include <ctype.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__MirBSD__) || defined(__OpenBSD__)
#include <sys/endian.h>
-#else
+#elif !defined(__APPLE__) && !defined(__sun)
#include <byteswap.h>
#endif /* __FreeBSD__ */
|