ref: 2991721da186f17df4930f77b940d66b8d27bc12
parent: c7a10cd0324841dcf45200ed2ae8f2aa9fb63886
author: Ulrich Klauer <ulrich@chirlu.de>
date: Mon Feb 11 20:16:06 EST 2013
Add pipe rewinding for IRIX As reported by canavan in patch tracker item 3604015, the pipe-rewind code for Windows also works on IRIX.
--- a/src/formats.c
+++ b/src/formats.c
@@ -411,7 +411,8 @@
fp->_r += PIPE_AUTO_DETECT_SIZE;
#elif defined __GLIBC__
fp->_IO_read_ptr = fp->_IO_read_base;
-#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || defined _ISO_STDIO_ISO_H
+#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || \
+ defined _ISO_STDIO_ISO_H || defined __sgi
fp->_ptr = fp->_base;
#else
/* To fix this #error, either simply remove the #error line and live without