This is the mail archive of the
mailing list for the Cygwin project.
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: <cygwin-apps at sources dot redhat dot com>
- Date: Sat, 17 Nov 2001 16:31:25 +1100
- Subject: indent
Gerrit, this is the bit of the patch I'm not sure of: as you are linking
against automode, isn't this redundant?
Also, at this point there's no need to have setup.hint embedded in the
binary or source tarball. (I see no particular reason no to either, this
is just a comment).
I've uploaded the files to sources.redhat.com. Welcome to the club.
diff -urbdN indent-2.2.6-orig/io.c indent-2.2.6-1/io.c
--- indent-2.2.6-orig/io.c Fri Nov 17 04:01:04 2000
+++ indent-2.2.6-1/io.c Thu Nov 15 16:35:22 2001
@@ -36,7 +36,7 @@
/* POSIX says that <fcntl.h> should exist. Some systems might need to
<sys/fcntl.h> or <sys/file.h> instead. */
+#if defined(_WIN32) || defined(__CYGWIN__)
#endif /* not VMS */
@@ -1029,6 +1029,9 @@
int namelen = strlen (filename);
fd = open (filename, O_RDONLY, 0777);
+ setmode(fd, O_TEXT);
if (fd < 0)
fatal ("Can't open input file %s", filename);