diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-07-16 12:00:58 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-07-16 12:00:58 +0000 |
commit | a2b6db9b87fc5bff6cecbd756c0ba2f07f64e228 (patch) | |
tree | 1caa5b353d65e769c67b6f2d718e0f3bef7aeef2 /Build/source/texk/dvipsk | |
parent | 18e4464e63053be33764cda1a3a50a60a3ebb82a (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/texk/dvipsk')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/squeeze/squeeze.c | 8 |
2 files changed, 12 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) |