indent
Robert Collins
robert.collins@itdomain.com.au
Sat Nov 10 20:59:00 GMT 2001
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.
Rob
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
use
<sys/fcntl.h> or <sys/file.h> instead. */
#include <fcntl.h>
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
#include <io.h>
#endif
#endif /* not VMS */
@@ -1029,6 +1029,9 @@
int namelen = strlen (filename);
fd = open (filename, O_RDONLY, 0777);
+#ifdef __CYGWIN__
+ setmode(fd, O_TEXT);
+#endif
if (fd < 0)
fatal ("Can't open input file %s", filename);
More information about the Cygwin-apps
mailing list