summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipsk/ChangeLog5
-rw-r--r--Build/source/texk/dvipsk/squeeze/squeeze.c8
-rw-r--r--Build/source/texk/seetexk/ChangeLog4
-rw-r--r--Build/source/texk/seetexk/seek.c4
4 files changed, 20 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index 1e8686888fe..12ddf3d01e5 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-16 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * squeeze/squeeze.c (__CYGWIN__): #include <unistd.h> and <io.h>
+ for isatty and setmode.
+
2009-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am (AM_CFLAGS): enable compiler warnings.
diff --git a/Build/source/texk/dvipsk/squeeze/squeeze.c b/Build/source/texk/dvipsk/squeeze/squeeze.c
index 134772b54df..e3ce0d6fae4 100644
--- a/Build/source/texk/dvipsk/squeeze/squeeze.c
+++ b/Build/source/texk/dvipsk/squeeze/squeeze.c
@@ -20,7 +20,13 @@
#endif /* !O_BINARY */
#if O_BINARY
-#define SET_BINARY(fd) _setmode((fd), O_BINARY)
+# ifdef __CYGWIN__
+# include <unistd.h>
+# include <io.h>
+# define SET_BINARY(fd) setmode((fd), O_BINARY)
+# else
+# define SET_BINARY(fd) _setmode((fd), O_BINARY)
+# endif
#endif
#define LINELENGTH (72)
diff --git a/Build/source/texk/seetexk/ChangeLog b/Build/source/texk/seetexk/ChangeLog
index 5e60de3f9c0..3a72eb00ee2 100644
--- a/Build/source/texk/seetexk/ChangeLog
+++ b/Build/source/texk/seetexk/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-16 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * seek.c (__CYGWIN32__): #include <io.h> for setmode.
+
2009-06-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* dvibook.c, dvitodvi.c: drop #ifdef HAVE_PROTOTYPES,
diff --git a/Build/source/texk/seetexk/seek.c b/Build/source/texk/seetexk/seek.c
index 9a309a3b431..6e4ebd264d1 100644
--- a/Build/source/texk/seetexk/seek.c
+++ b/Build/source/texk/seetexk/seek.c
@@ -23,6 +23,10 @@
#include <config.h>
#endif
+#ifdef __CYGWIN32__
+#include <io.h>
+#endif
+
#ifdef KPATHSEA
#include <kpathsea/c-fopen.h>
#endif