This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[PATCH] gzip-1.3.5-1 fails to set stdout to binary mode
- From: Earl Chew <earl_chew at agilent dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 15 Oct 2004 17:53:31 -0700
- Subject: [PATCH] gzip-1.3.5-1 fails to set stdout to binary mode
This patch duplicates the change in gzip-1.3.3-4 and is also mentioned
in:
http://sources.redhat.com/ml/cygwin/1997-02/msg00204.html
Earl
--- tailor.h~ 2002-09-25 14:21:30.000000000 -0700
+++ tailor.h 2004-10-15 17:42:50.229826500 -0700
@@ -299,7 +299,11 @@
#endif
#ifndef SET_BINARY_MODE
+# ifdef __CYGWIN32__
+# define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
+# else
# define SET_BINARY_MODE(fd)
+# endif
#endif
#ifndef OPEN
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/