Subject: pkg/20983: sysutils/cdrecord-xcdroast/patches/patch-ac needs ifdef __NetBSD__
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 04/02/2003 23:57:08
>Number:         20983
>Category:       pkg
>Synopsis:       sysutils/cdrecord-xcdroast/patches/patch-ac needs ifdef __NetBSD__
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 02 23:58:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
sysutils/cdrecord-xcdroast/patches/patch-ac assumes OS has
machine/endian.h
>How-To-Repeat:
Attempt to build on system without machine/endian.h.
	
>Fix:
Probably a different fix would be better for all BSDs (et cetera),
but the other patches already have ifdef __NetBSD__ too.

Please consider this fix. Thank you.

Index: sysutils/cdrecord-xcdroast/patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/cdrecord-xcdroast/patches/patch-ac,v
retrieving revision 1.1.1.1
diff -b -u -r1.1.1.1 patch-ac
--- sysutils/cdrecord-xcdroast/patches/patch-ac	2002/12/02 18:41:20	1.1.1.1
+++ sysutils/cdrecord-xcdroast/patches/patch-ac	2003/04/03 07:52:11
@@ -1,16 +1,16 @@
-$NetBSD: patch-ac,v 1.1.1.1 2002/12/02 18:41:20 drochner Exp $
-
---- include/btorder.h.orig	Mon Dec 10 10:54:27 2001
-+++ include/btorder.h
-@@ -28,6 +28,7 @@
+--- include/btorder.h.orig	Sun Dec  9 15:54:27 2001
++++ include/btorder.h	Wed Apr  2 23:51:17 2003
+@@ -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 +109,7 @@ error  Only one of _BIT_FIELDS_LTOH or _
+@@ -108,7 +111,7 @@
  #	if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
  	   defined(__PPC) || defined(powerpc) || defined(__powerpc__)
  
>Release-Note:
>Audit-Trail:
>Unformatted: