summaryrefslogtreecommitdiff
path: root/Build/source/texk/seetexk
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-25 06:24:50 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-25 06:24:50 +0000
commitd5825529281ac5f76498d6cdf10d538a8fd6136a (patch)
treecec8aa453fbdf20b0a70a5079ed3bb0f5df960c8 /Build/source/texk/seetexk
parent184fad489d2f260cc456ad28e6cb3af4ace507d8 (diff)
seetexk: No special file mode handling for Cygwin (from Ken Brown)
git-svn-id: svn://tug.org/texlive/trunk@27150 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/seetexk')
-rw-r--r--Build/source/texk/seetexk/ChangeLog4
-rw-r--r--Build/source/texk/seetexk/seek.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/seetexk/ChangeLog b/Build/source/texk/seetexk/ChangeLog
index adc578b4b09..7e44da05217 100644
--- a/Build/source/texk/seetexk/ChangeLog
+++ b/Build/source/texk/seetexk/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-25 Ken Brown <kbrow1i@gmail.com>
+
+ * seek.c (CopyFile): No special file mode handling for Cygwin.
+
2012-03-20 Karl Berry <karl@tug.org>
* *.c, *.h, *.man: update license of UMD files to use the X11
diff --git a/Build/source/texk/seetexk/seek.c b/Build/source/texk/seetexk/seek.c
index 31cc1409a71..67d51a60ea4 100644
--- a/Build/source/texk/seetexk/seek.c
+++ b/Build/source/texk/seetexk/seek.c
@@ -38,10 +38,6 @@
#include <config.h>
#endif
-#ifdef __CYGWIN32__
-#include <io.h>
-#endif
-
#ifdef KPATHSEA
#include <kpathsea/c-fopen.h>
#endif
@@ -86,7 +82,7 @@ CopyFile(FILE *f)
#define BSIZE BUFSIZ
#endif
char stackbuf[BSIZE];
-#if defined(WIN32) || defined(MSDOS) || defined(__CYGWIN32__)
+#if defined(WIN32) || defined(MSDOS)
int orig_fdmode;
#endif
const char *open_mode;
@@ -123,7 +119,7 @@ CopyFile(FILE *f)
}
#endif
-#if defined(WIN32) || defined(MSDOS) || defined(__CYGWIN32__)
+#if defined(WIN32) || defined(MSDOS)
/* make sure we open the temp file in the same mode that
the original handle was open. */
orig_fdmode = setmode(ifd, 0);
@@ -155,7 +151,7 @@ CopyFile(FILE *f)
(void) fclose(f);
(void) lseek(tf, 0L, 0);
errno = 0;
-#if defined(WIN32) || defined(MSDOS) || defined(__CYGWIN32__)
+#if defined(WIN32) || defined(MSDOS)
open_mode = orig_fdmode == O_BINARY ? FOPEN_RBIN_MODE : "r";
#else
open_mode = "r";