summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-07-16 12:00:58 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-07-16 12:00:58 +0000
commita2b6db9b87fc5bff6cecbd756c0ba2f07f64e228 (patch)
tree1caa5b353d65e769c67b6f2d718e0f3bef7aeef2 /Build/source
parent18e4464e63053be33764cda1a3a50a60a3ebb82a (diff)
avoid some cygwin compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@14277 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-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