summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dtl/ChangeLog6
-rw-r--r--Build/source/texk/dtl/dt2dv.c10
-rw-r--r--Build/source/texk/dtl/dv2dt.c10
3 files changed, 24 insertions, 2 deletions
diff --git a/Build/source/texk/dtl/ChangeLog b/Build/source/texk/dtl/ChangeLog
index 0b554c21481..75db4633b4e 100644
--- a/Build/source/texk/dtl/ChangeLog
+++ b/Build/source/texk/dtl/ChangeLog
@@ -2,6 +2,12 @@
* dt2dv.c: do not include timestamp in binary.
+2009-06-09 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am (AM_CFLAGS): enable compiler warnings.
+ * dt2dv.c: #include <unistd.h> to declare isatty.
+ * dv2dt.c: #include <unistd.h> to declare isatty.
+
2009-05-27 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
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 <config.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#else
+#ifndef __cplusplus
+extern int isatty (int );
+#endif /* __cplusplus */
+#endif
+
#ifdef KPATHSEA
#include <kpathsea/c-fopen.h>
#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));
}
diff --git a/Build/source/texk/dtl/dv2dt.c b/Build/source/texk/dtl/dv2dt.c
index 8ae6052e479..7627a9d3215 100644
--- a/Build/source/texk/dtl/dv2dt.c
+++ b/Build/source/texk/dtl/dv2dt.c
@@ -24,6 +24,14 @@
#include <config.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#else
+#ifndef __cplusplus
+extern int isatty (int );
+#endif /* __cplusplus */
+#endif
+
#ifdef KPATHSEA
#include <kpathsea/c-fopen.h>
#endif
@@ -164,7 +172,7 @@ main
if (argc > 1)
open_dvi (argv[1], &dvi);
else if (!isatty(fileno(dvi)))
- SET_BINARY(fileno(dvi));
+ (void)SET_BINARY(fileno(dvi));
if (argc > 2)
open_dtl (argv[2], &dtl);