diff options
Diffstat (limited to 'audio/csound-bath/patches/patch-ap')
-rw-r--r-- | audio/csound-bath/patches/patch-ap | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/audio/csound-bath/patches/patch-ap b/audio/csound-bath/patches/patch-ap index 475a791fc33..2e798dba2c6 100644 --- a/audio/csound-bath/patches/patch-ap +++ b/audio/csound-bath/patches/patch-ap @@ -1,13 +1,29 @@ -$NetBSD: patch-ap,v 1.1 2002/01/21 11:28:16 wiz Exp $ +$NetBSD: patch-ap,v 1.2 2002/03/23 02:23:01 wiz Exp $ ---- anal/lpc/makef.orig Sun May 16 20:04:06 1999 -+++ anal/lpc/makef -@@ -6,7 +6,7 @@ +--- cs.h.orig Sat Jan 26 05:29:36 2002 ++++ cs.h +@@ -18,6 +18,24 @@ - OBJS = main.o $T/lpanal.o $T/lptrkfns.o $T/filopen.o $T/sfheader.o \ - $T/soundin.o $T/ulaw.o $T/aiff.o $T/wave.o $T/ieee80.o \ -- $T/memalloc.o $T/window.o $T/winX11.o $T/winascii.o $T/winEPS.o \ -+ $T/memalloc.o $T/window.o $T/winascii.o $T/winEPS.o \ - $T/aifc.o $T/getstring.o + #include "version.h" - lpcs: lpanal ++/* __BIG_ENDIAN__ is used various places in csound ++ BIG_ENDIAN is used by the sdif code ++ in NetBSD, (BIG|LITTLE)_ENDIAN is defined by sys/endian.h ++ included in sys/types included in stdlib.h ++*/ ++#ifdef __NetBSD__ ++#undef BIG_ENDIAN ++#undef LITTLE_ENDIAN ++#if _BYTE_ORDER == _BIG_ENDIAN ++#define __BIG_ENDIAN__ ++#define BIG_ENDIAN ++#else ++#define __LITTLE_ENDIAN__ ++#define LITTLE_ENDIAN ++#endif /* _BYTE_ORDER */ ++#endif /* __NetBSD__ */ ++ ++ + #define VMSGS 1 + #if VMSGS + #define VMSG(x) if (odebug) x |