[MPlayer-cvslog] CVS: main/libmpdvdkit2 bswap.h, 1.3, 1.4 dvd_reader.c, 1.13, 1.14
Diego Biurrun CVS
syncmail at mplayerhq.hu
Wed May 25 10:48:34 CEST 2005
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/var2/tmp/cvs-serv9710/libmpdvdkit2
Modified Files:
bswap.h dvd_reader.c
Log Message:
DragonFly BSD support
patch by Joerg Sonnenberger <joerg - at - britannica - dot - bec - dot - de>
Index: bswap.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/bswap.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- bswap.h 11 Mar 2005 02:40:28 -0000 1.3
+++ bswap.h 25 May 2005 08:48:32 -0000 1.4
@@ -88,12 +88,17 @@
}
#define B2N_64(x) x = bswap_64(x)
+#elif defined(__DragonFly__)
+#include <sys/endian.h>
+#define B2N_16(x) x = be16toh(x)
+#define B2N_32(x) x = be32toh(x)
+#define B2N_64(x) x = be64toh(x)
+
/* This is a slow but portable implementation, it has multiple evaluation
* problems so beware.
* FreeBSD and Solaris don't have <byteswap.h> or any other such
* functionality!
*/
-
#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(__CYGWIN__)
#define B2N_16(x) \
x = ((((x) & 0xff00) >> 8) | \
Index: dvd_reader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/dvd_reader.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- dvd_reader.c 21 May 2005 11:05:45 -0000 1.13
+++ dvd_reader.c 25 May 2005 08:48:32 -0000 1.14
@@ -35,7 +35,7 @@
#include <limits.h>
#include <dirent.h>
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__)|| defined(__DARWIN__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__)|| defined(__DARWIN__) || defined(__DragonFly__)
#define SYS_BSD 1
#endif
More information about the MPlayer-cvslog
mailing list