File: missing-prototypes.patch

package info (click to toggle)
trueprint 5.4-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,384 kB
  • sloc: sh: 12,296; ansic: 8,482; makefile: 115
file content (44 lines) | stat: -rw-r--r-- 1,056 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
40
41
42
43
44
Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=implicit-function-declaration

--- a/src/lang_pike.c
+++ b/src/lang_pike.c
@@ -10,6 +10,7 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "trueprint.h"
 #include "main.h"
--- a/src/language.c
+++ b/src/language.c
@@ -23,6 +23,7 @@
 #include "lang_verilog.h"
 #include "options.h"
 #include "utils.h"
+#include "debug.h"
 
 #include "language.h"
 
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ AC_PROG_LIBTOOL
 # Checks for libraries.
 
 # Checks for header files.
-AC_CHECK_HEADERS([fcntl.h libintl.h stddef.h stdlib.h string.h sys/time.h unistd.h])
+AC_CHECK_HEADERS([fcntl.h libintl.h stddef.h stdlib.h string.h sys/time.h sys/wait.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_CHECK_HEADER_STDBOOL
--- a/src/lang_sh.c
+++ b/src/lang_sh.c
@@ -18,6 +18,7 @@
 #include "index.h"
 #include "language.h"
 #include "output.h"
+#include "debug.h"
 
 #include "lang_sh.h"