3d7db94440
Additionally: * Mark it as also working with libdvdread 4.1.3 * Add comments to the patches * Add LICENSE=gnu-gpl-v2 This fixes all pkglint warnings. OK'ed by wiz@
20 lines
854 B
Text
20 lines
854 B
Text
$NetBSD: patch-aa,v 1.2 2012/04/07 08:28:45 he Exp $
|
|
|
|
Also handle DragonFly BSD.
|
|
|
|
--- include/ogle_endian.h.orig 2005-12-07 19:00:42.000000000 +0000
|
|
+++ include/ogle_endian.h
|
|
@@ -42,11 +42,11 @@
|
|
# include <sys/bswap.h>
|
|
# define FROM_BE_16(x) (bswap16(x))
|
|
# define FROM_BE_32(x) (bswap32(x))
|
|
-#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__)
|
|
+#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__) && !defined(__DragonFly__)
|
|
# include <sys/endian.h>
|
|
# define FROM_BE_16(x) (swap16(x))
|
|
# define FROM_BE_32(x) (swap32(x))
|
|
-#elif defined(HAVE_SYS_ENDIAN_H) && defined(__FreeBSD__) && __FreeBSD_version >= 470000
|
|
+#elif defined(HAVE_SYS_ENDIAN_H) && ((defined(__FreeBSD__) && __FreeBSD_version >= 470000) || defined(__DragonFly__))
|
|
# include <sys/endian.h>
|
|
# define FROM_BE_16(x) (be16toh(x))
|
|
# define FROM_BE_32(x) (be32toh(x))
|