File: fix_clang.patch

package info (click to toggle)
bwbasic 2.20pl2-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,764 kB
  • sloc: ansic: 21,002; makefile: 80
file content (26 lines) | stat: -rw-r--r-- 536 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
Description: Fix FTBFS with clang
Bug-Debian: https://bugs.debian.org/686542

---

--- bwbasic-2.20pl2.orig/bwx_tty.c
+++ bwbasic-2.20pl2/bwx_tty.c
@@ -65,8 +65,8 @@ extern jmp_buf mark;
 
 ***************************************************************/
 
+int
 #if ANSI_C
-void
 main( int argc, char **argv )
 #else
 main( argc, argv )
@@ -92,7 +92,7 @@ main( argc, argv )
 
       bwx_terminate();			/* allow ^D (Unix) exit with grace */
 
-
+      return 0;
    }
 
 /***************************************************************