File: gcc-15.patch

package info (click to toggle)
wily 0.13.42-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,820 kB
  • sloc: ansic: 25,541; perl: 580; sh: 415; makefile: 400; python: 30; exp: 17
file content (31 lines) | stat: -rw-r--r-- 664 bytes parent folder | download
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
Description: fix FTBFS with GCC 15
Author: Andreas Beckmann <anbe@debian.org>

--- a/include/msg.h
+++ b/include/msg.h
@@ -3,7 +3,11 @@
 
 typedef struct Msg Msg;
 typedef int Id;		/* Window identifier */
+#if __STDC_VERSION__ < 202311L
 typedef enum Bool {false, true} Bool;
+#else
+typedef bool Bool;
+#endif
 typedef struct Range Range;
 
 /* name of environment variable */
--- a/tools/win/win.c
+++ b/tools/win/win.c
@@ -680,9 +680,11 @@ openmaster(void)
 	/* e.g., on Digital UNIX or Solaris */
 
 	{
+#if 0
 		extern char *ptsname();
 		extern int grantpt();
 		extern int unlockpt();
+#endif
 		
 		master = open("/dev/ptmx", O_RDWR);
 		if (master < 0) {