pkgsrc/devel/libvolume_id/patches/patch-ab
ryoon 743289899b Fix build under OpenBSD
* Treat OpenBSD like other *BSD
2014-05-05 21:13:16 +00:00

16 lines
482 B
Text

$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__ */