Files
haikuports/media-sound/sox/patches/sox-14.4.2.patchset
Adrián Arroyo Calle 46f92e19fe Sox 14.4.2
2015-08-28 12:30:30 +00:00

24 lines
774 B
Plaintext

From 36e7868b80c3f53896e647b06ad8d96baf925e05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?=
<adrian.arroyocalle@gmail.com>
Date: Fri, 28 Aug 2015 12:23:33 +0000
Subject: Haiku acts like GLIBC
diff --git a/src/formats.c b/src/formats.c
index 724a4cd..079cd9a 100644
--- a/src/formats.c
+++ b/src/formats.c
@@ -413,7 +413,7 @@ static void UNUSED rewind_pipe(FILE * fp)
#if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__
fp->_p -= PIPE_AUTO_DETECT_SIZE;
fp->_r += PIPE_AUTO_DETECT_SIZE;
-#elif defined __GLIBC__
+#elif defined __GLIBC__ || defined __HAIKU__
fp->_IO_read_ptr = fp->_IO_read_base;
#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || \
defined _ISO_STDIO_ISO_H || defined __sgi
--
2.2.2