File: dvi2tty.h.diff

package info (click to toggle)
texlive-bin 2025.20250727.75242%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 209,848 kB
  • sloc: ansic: 893,586; cpp: 156,185; perl: 101,166; sh: 37,697; python: 13,679; javascript: 9,754; makefile: 8,933; xml: 8,361; lex: 5,176; pascal: 3,814; java: 3,569; yacc: 2,935; tcl: 2,903; exp: 2,031; ruby: 712; lisp: 687; sed: 375; asm: 140; csh: 46; awk: 30
file content (39 lines) | stat: -rw-r--r-- 1,729 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: #1097988: texlive-bin: ftbfs with GCC-15
Forwarded: https://github.com/t-tk/dvi2tty/issues/1
Author: Hilmar Preuße <hille42@debian.org>
Applied-Upstream: I confirmed TeX Live svn r74888 and I agree with the commit.
Last-Update: 2025-04-11

Index: Changelog
===================================================================
--- texlive-bin-2025.20250325.74682.orig/texk/dvi2tty/dvi2tty-src/Changelog	(revision 74875)
+++ texlive-bin-2025.20250325.74682/texk/dvi2tty/dvi2tty-src/Changelog	(working copy)
@@ -1,4 +1,6 @@
 /******************************************************************************
+ * Hilmar Preusse: 250408 (hille42@web.de)
+ *               Use <stdbool.h> instead of declaring bool, to placate C23.
  * Takuji Tanaka: 20160305 (ttk@t-lab.opal.ne.jp)
  *               Version 6.0.0
  *               Supported T1,TS1,OT2,T2A,T2B,T2C,X2 encodings.
Index: dvi2tty.h
===================================================================
--- texlive-bin-2025.20250325.74682.orig/texk/dvi2tty/dvi2tty-src/dvi2tty.h	(revision 74875)
+++ texlive-bin-2025.20250325.74682/texk/dvi2tty/dvi2tty-src/dvi2tty.h	(working copy)
@@ -40,6 +40,7 @@ Copyright (C) 1989-2010 M.J.E. Mol, MESA Consultin
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <stdbool.h>
 
 #if (defined(WIN32) && !defined(__MINGW32__))
 # include <fcntl.h>
@@ -101,7 +102,8 @@ typedef unsigned long DWORD;
  * Type definitions
  */
 
-typedef char bool;
+/* C23 makes "bool" into a keyword; must use <stdbool.h> as above. */
+/* typedef char bool; */
 
 typedef struct prlistptr {      /* list of pages selected for output         */
     int       pag;                      /* number of pages                   */