]> git.mxchange.org Git - simgear.git/blobdiff - zlib/minigzip.c
Cygnus tools compatibility tweaks.
[simgear.git] / zlib / minigzip.c
index c05d0ea92fb50206f161fa3b6eb01a3a395af40f..7215eaeb0fc42be602d34ed572ad44ad71f642db 100644 (file)
@@ -48,6 +48,9 @@
 #  define GZ_SUFFIX "-gz"
 #  define fileno(file) file->__file
 #endif
+#if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
+#  include <unix.h> /* for fileno */
+#endif
 
 #ifndef WIN32 /* unlink already in stdio.h for WIN32 */
   extern int unlink OF((const char *));