From 20008f96e768b3d96476d77d02d000e3904c3ce8 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 15 Jun 2009 15:18:32 +0000 Subject: avoid compiler warnings git-svn-id: svn://tug.org/texlive/trunk@13761 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dtl/dt2dv.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/dtl/dt2dv.c') diff --git a/Build/source/texk/dtl/dt2dv.c b/Build/source/texk/dtl/dt2dv.c index 1b49875d331..9c6c26666ce 100644 --- a/Build/source/texk/dtl/dt2dv.c +++ b/Build/source/texk/dtl/dt2dv.c @@ -31,6 +31,14 @@ #include #endif +#ifdef HAVE_UNISTD_H +#include +#else +#ifndef __cplusplus +extern int isatty (int ); +#endif /* __cplusplus */ +#endif + #ifdef KPATHSEA #include #endif @@ -469,7 +477,7 @@ Void dvi_stdout (VOID) dvi_filename = "Standard Output"; ++ nfile; if (!isatty(fileno(dvi_fp))) - SET_BINARY(fileno(dvi_fp)); + (void)SET_BINARY(fileno(dvi_fp)); } -- cgit v1.2.3