Opened 11 years ago

Closed 11 years ago

#1414 closed enhancement (invalid)

Patch to make libdvdread work on DragonFlyBSD

Reported by: steve@… Owned by: reimar
Priority: normal Component: core
Version: unspecified Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


libdvdread 4.1.3 does not currently compile on DragonFlyBSD due to lack of a definition for byte swapping routines. The patch below supplies the appropriate definition and makes libdvdread 4.1.3 compile and work on DragonFlyBSD

--- src/bswap.h.orig 2009-02-23 09:39:57 +0000
+++ src/bswap.h
@@ -65,6 +65,12 @@

#define B2N_32(x) x = be32toh(x)
#define B2N_64(x) x = be64toh(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

Change History (1)

comment:1 Changed 11 years ago by reimar

  • Resolution set to invalid
  • Status changed from new to closed

Please report this to
While some developers are shared, MPlayer is not the same as the dvdread/dvdnav project, nor do we include our own copy anymore.

Note: See TracTickets for help on using tickets.