pkgsrc/sysutils/cdrtools/patches/patch-ac
bad 4989de81bd Update cdrtools to 2.01.01a24.
The change logs with over 3000 lines are too long to mention here.
See AN-2.01.01* in the source directory.

For me it was support for writing DVD+RWs.

Note on the patches:
patch-ak: fix compilation with DVDPLUS_DEBUG defined.

patch-cg: revert "use" from off_t to int again as it is passed to function
expecting an int. The possible values aren't huge, anyway.

patch-ck, patch-cl, patch-cm: fix references to /etc/default/cdrecord.

Remove patches that have been incorporated upstream.
2007-03-16 22:04:52 +00:00

23 lines
747 B
Text

$NetBSD: patch-ac,v 1.2 2007/03/16 22:04:53 bad Exp $
--- include/schily/btorder.h.orig 2007-01-16 15:19:12.000000000 +0100
+++ include/schily/btorder.h
@@ -27,6 +27,9 @@
#ifndef _SCHILY_TYPES_H
#include <schily/types.h> /* try to load isa_defs.h on Solaris */
#endif
+#ifdef __NetBSD__
+#include <machine/endian.h>
+#endif
/*
* Convert bit-order definitions from xconfig.h into our values
@@ -103,7 +106,7 @@ error Only one of _BIT_FIELDS_LTOH or _
# if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
defined(__PPC) || defined(powerpc) || defined(__powerpc__)
-# if defined(__BIG_ENDIAN__)
+# if defined(__BIG_ENDIAN__) || BYTE_ORDER == BIG_ENDIAN
# define _BIT_FIELDS_HTOL
# else
# define _BIT_FIELDS_LTOH