diff options
Diffstat (limited to 'recipes-extended/nagios/nagios-core/0001-fix-compile-error-of-missing-headers.patch')
-rw-r--r-- | recipes-extended/nagios/nagios-core/0001-fix-compile-error-of-missing-headers.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/recipes-extended/nagios/nagios-core/0001-fix-compile-error-of-missing-headers.patch b/recipes-extended/nagios/nagios-core/0001-fix-compile-error-of-missing-headers.patch new file mode 100644 index 00000000..7f4cfbd7 --- /dev/null +++ b/recipes-extended/nagios/nagios-core/0001-fix-compile-error-of-missing-headers.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | From a5e12350cb25b2f9289c0d27e26afc337652d42e Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Fri, 31 Aug 2018 13:33:31 +0800 | ||
4 | Subject: [PATCH] fix compile error of missing headers | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
9 | --- | ||
10 | cgi/getcgi.c | 3 ++- | ||
11 | include/shared.h | 31 +++++++++++++++++++++++++++++++ | ||
12 | 2 files changed, 33 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/cgi/getcgi.c b/cgi/getcgi.c | ||
15 | index 37b479f..1f83e11 100644 | ||
16 | --- a/cgi/getcgi.c | ||
17 | +++ b/cgi/getcgi.c | ||
18 | @@ -7,10 +7,11 @@ | ||
19 | |||
20 | #include "../include/config.h" | ||
21 | #include "../include/getcgi.h" | ||
22 | +#include "../include/shared.h" | ||
23 | + | ||
24 | #include <stdio.h> | ||
25 | #include <stdlib.h> | ||
26 | |||
27 | - | ||
28 | #undef PARANOID_CGI_INPUT | ||
29 | |||
30 | |||
31 | diff --git a/include/shared.h b/include/shared.h | ||
32 | index 84836c7..1dfa0c7 100644 | ||
33 | --- a/include/shared.h | ||
34 | +++ b/include/shared.h | ||
35 | @@ -1,6 +1,37 @@ | ||
36 | #ifndef NAGIOS_SHARED_H_INCLUDED | ||
37 | #define NAGIOS_SHARED_H_INCLUDED | ||
38 | |||
39 | +#include <stdio.h> | ||
40 | +#include <sys/types.h> | ||
41 | +#include <sys/stat.h> | ||
42 | +#include <sys/socket.h> | ||
43 | +#include <sys/mman.h> | ||
44 | +#include <stdlib.h> | ||
45 | +#include <stddef.h> | ||
46 | +#include <stdlib.h> | ||
47 | +#include <memory.h> | ||
48 | +#include <string.h> | ||
49 | +#include <strings.h> | ||
50 | +#include <inttypes.h> | ||
51 | +#include <stdint.h> | ||
52 | +#include <unistd.h> | ||
53 | +#include <dirent.h> | ||
54 | +#include <math.h> | ||
55 | +#include <fcntl.h> | ||
56 | +#include <regex.h> | ||
57 | +#include <ctype.h> | ||
58 | +#include <sys/prctl.h> | ||
59 | +#include <stdarg.h> | ||
60 | +#include <dlfcn.h> | ||
61 | +#include <getopt.h> | ||
62 | +#include <syslog.h> | ||
63 | +#include <pwd.h> | ||
64 | +#include <grp.h> | ||
65 | +#include <netdb.h> | ||
66 | +#include <wchar.h> | ||
67 | +#include <locale.h> | ||
68 | +#include <limits.h> | ||
69 | + | ||
70 | #include <time.h> | ||
71 | #include "lib/libnagios.h" | ||
72 | |||
73 | -- | ||
74 | 2.7.4 | ||
75 | |||