[libdvdnav-devel] libdvdread support for Dragonfly BSD
Thomas Klausner
tk at giga.or.at
Wed Oct 1 14:32:41 CEST 2014
Hi!
I've just updated the pkgsrc package for libdvdread to 5.0.0 and noted
that we have one patch for it. It improves support for Dragonfly BSD,
using the native versions of bswap*().
Can you please integrate this?
Thanks,
Thomas
-------------- next part --------------
$NetBSD: patch-aa,v 1.11 2014/10/01 12:18:19 wiz Exp $
DragonFly support.
--- src/bswap.h.orig 2014-01-02 15:37:37.000000000 +0000
+++ src/bswap.h
@@ -73,6 +73,12 @@
#define B2N_32(x) x = ENDIAN_RET32(x)
#define B2N_64(x) x = ENDIAN_RET64(x)
+#elif defined(__DragonFly__)
+#include <sys/endian.h>
+#define B2N_16(x) x = bswap16(x)
+#define B2N_32(x) x = bswap32(x)
+#define B2N_64(x) x = bswap64(x)
+
/* This is a slow but portable implementation, it has multiple evaluation
* problems so beware.
* Old FreeBSD's and Solaris don't have <byteswap.h> or any other such
More information about the libdvdnav-devel
mailing list