From 6c4bd31e36fba2ff8f4f943799faff871848ae3f Mon Sep 17 00:00:00 2001 From: mycroft Date: Sat, 9 Oct 1999 20:51:41 +0000 Subject: Make this build on PowerPC. --- sysutils/cdrecord/patches/patch-ac | 14 ++++++++++---- sysutils/cdrecord/patches/patch-ae | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 sysutils/cdrecord/patches/patch-ae (limited to 'sysutils') diff --git a/sysutils/cdrecord/patches/patch-ac b/sysutils/cdrecord/patches/patch-ac index 92b940d7c59..c81b7ac4485 100644 --- a/sysutils/cdrecord/patches/patch-ac +++ b/sysutils/cdrecord/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.7 1998/11/17 14:14:43 mycroft Exp $ +$NetBSD: patch-ac,v 1.8 1999/10/09 20:51:41 mycroft Exp $ ---- include/btorder.h.orig Sun Jul 19 19:28:10 1998 -+++ include/btorder.h Sat Nov 7 14:40:40 1998 -@@ -46,7 +46,7 @@ +--- include/btorder.h.orig Sun Jul 19 16:28:10 1998 ++++ include/btorder.h Sat Oct 9 13:33:43 1999 +@@ -46,12 +46,12 @@ # endif # if defined(__i386) || defined(i386) || \ @@ -11,3 +11,9 @@ $NetBSD: patch-ac,v 1.7 1998/11/17 14:14:43 mycroft Exp $ # define _BIT_FIELDS_LTOH # endif + # if defined(__ppc__) || defined(ppc) || defined(__ppc) || \ +- defined(__PPC) || defined(powerpc) ++ defined(__PPC) || defined(powerpc) || defined(__powerpc__) + + # if defined(__BIG_ENDIAN__) + # define _BIT_FIELDS_HTOL diff --git a/sysutils/cdrecord/patches/patch-ae b/sysutils/cdrecord/patches/patch-ae new file mode 100644 index 00000000000..1a4aafdaab2 --- /dev/null +++ b/sysutils/cdrecord/patches/patch-ae @@ -0,0 +1,28 @@ +$NetBSD: patch-ae,v 1.1 1999/10/09 20:51:41 mycroft Exp $ + +--- include/vadefs.h.orig Sun Mar 1 15:38:45 1998 ++++ include/vadefs.h Sat Oct 9 13:47:40 1999 +@@ -37,8 +37,8 @@ + # include + #endif + +-#if (defined(__linux__) || defined(__linux) || defined(sun)) && \ +- (defined(__ppc) || defined(__PPC) || defined(powerpc)) ++#if (defined(__linux__) || defined(__linux) || defined(sun) || defined(__NetBSD__)) && \ ++ (defined(__ppc) || defined(__PPC) || defined(powerpc) || defined(__powerpc__)) + + # ifndef VA_LIST_IS_ARRAY + # define VA_LIST_IS_ARRAY +@@ -63,7 +63,11 @@ + * compatibility. + */ + #if !defined(va_copy) && !defined(HAVE_VA_COPY) +-# define va_copy(to, from) ((to) = (from)) ++# ifdef VA_LIST_IS_ARRAY ++# define va_copy(to, from) ((to)[0] = (from)[0]) ++# else ++# define va_copy(to, from) ((to) = (from)) ++# endif + #endif + + /* -- cgit v1.2.3