pkgsrc/sysutils/cdrdao/patches/patch-ac
dillo d9de94a7b2 update to 1.1.8
provided in PR/25732 by Stefan Krüger (space7 at meinberlikomm dot
de), small cleanups by me

changes:
	- replace encumbered code
	- support for ATAPI devices
2004-05-29 08:05:08 +00:00

23 lines
766 B
Text

$NetBSD: patch-ac,v 1.4 2004/05/29 08:05:08 dillo Exp $
--- scsilib/include/btorder.h.orig 2004-02-10 00:34:00.000000000 +0100
+++ scsilib/include/btorder.h
@@ -28,6 +28,9 @@
#include <sys/types.h> /* try to load isa_defs.h on Solaris */
#define _INCL_SYS_TYPES_H
#endif
+#ifdef __NetBSD__
+#include <machine/endian.h>
+#endif
#ifndef _MCONFIG_H
#include <mconfig.h> /* load bit/byte-oder from xmconfig.h*/
@@ -108,7 +111,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