File: implicit-function-declaration.patch

package info (click to toggle)
libmediascan 0~20220401.git.34fc2d-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,384 kB
  • sloc: ansic: 17,059; sh: 4,228; objc: 261; perl: 225; makefile: 101
file content (51 lines) | stat: -rw-r--r-- 1,054 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Description: fix errors with -Werror=implicit-function-declaration
Origin: vendor
Bug-Debian: https://bugs.debian.org/1066249
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2024-03-14

--- a/test/api_test.c
+++ b/test/api_test.c
@@ -9,10 +9,13 @@
 #include "tap.h"
 #include "common.h"
 
+#include <sys/time.h>
+
 #define TEST_COUNT 21
 
 static int rcount = 0;
 
+int run_unit_tests(void);
 
 ///-------------------------------------------------------------------------------------------------
 ///  Called with a result.
--- a/test/test.c
+++ b/test/test.c
@@ -1,6 +1,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <sys/time.h>
 
 
 #ifdef WIN32
--- a/test/test_background.c
+++ b/test/test_background.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <sys/time.h>
 
 
 #ifdef WIN32
@@ -9,7 +10,8 @@
 #include <fcntl.h>
 #include <sys/wait.h>
 #define _rmdir rmdir
-#define _mkdir mkdir
+#include <sys/stat.h>
+#define _mkdir(x) mkdir((x), 0755)
 #define CopyFile copyfile
 #define DeleteFile deletefile
 #endif