mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
24 lines
774 B
Plaintext
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
|
|
|