diff options
author | jperkin <jperkin> | 2012-12-18 14:42:29 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2012-12-18 14:42:29 +0000 |
commit | f29021eed91e2cffbeea3848929939da059173a9 (patch) | |
tree | 12fe52583d14a5679883f95635c5254da900463f /audio/sox/patches | |
parent | 83f517c002463be55728f3fcf5f253b1f3f0c291 (diff) | |
download | pkgsrc-f29021eed91e2cffbeea3848929939da059173a9.tar.gz |
On 64-bit Solaris FILE is an opaque type, disable the rewind functionality.
Fixes package build.
Diffstat (limited to 'audio/sox/patches')
-rw-r--r-- | audio/sox/patches/patch-ak | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/audio/sox/patches/patch-ak b/audio/sox/patches/patch-ak index 76dc6fadaaf..1e3d6c849ff 100644 --- a/audio/sox/patches/patch-ak +++ b/audio/sox/patches/patch-ak @@ -1,10 +1,12 @@ -$NetBSD: patch-ak,v 1.1 2010/12/27 05:32:49 obache Exp $ +$NetBSD: patch-ak,v 1.2 2012/12/18 14:42:29 jperkin Exp $ * On DragonFly, FILE is hidden, only allowed to modify in __FILE_public. ---- src/formats.c.orig 2010-01-02 00:07:28.000000000 +0000 -+++ src/formats.c -@@ -397,8 +397,14 @@ static void UNUSED rewind_pipe(FILE * fp +* Disable file-type pipe detection on 64-bit Solaris. + +--- src/formats.c.orig 2012-03-04 22:54:16.000000000 +0000 ++++ src/formats.c 2012-12-18 14:37:03.629252407 +0000 +@@ -406,17 +406,22 @@ /* _FSTDIO is for Torek stdio (i.e. most BSD-derived libc's) * In theory, we no longer need to check _NEWLIB_VERSION or __APPLE__ */ #if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__ @@ -18,4 +20,14 @@ $NetBSD: patch-ak,v 1.1 2010/12/27 05:32:49 obache Exp $ +# endif #elif defined __GLIBC__ fp->_IO_read_ptr = fp->_IO_read_base; - #elif defined _MSC_VER || defined __MINGW_H || defined _ISO_STDIO_ISO_H +-#elif defined _MSC_VER || defined __MINGW_H || defined _ISO_STDIO_ISO_H ++#elif defined _MSC_VER || defined __MINGW_H || (defined _ISO_STDIO_ISO_H && !(defined(__sun) && defined(_LP64))) + fp->_ptr = fp->_base; + #else + /* To fix this #error, either simply remove the #error line and live without + * file-type detection with pipes, or add support for your compiler in the + * lines above. Test with cat monkey.au | ./sox --info - */ +- #error FIX NEEDED HERE + #define NO_REWIND_PIPE + (void)fp; + #endif |