aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-include-missing-system-headers.patch
blob: c16e393f49b08fddd6ef5edd2a4fc2477bf9a13c (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
From c5b15ae9636a3b73407372cce87eb40ea78a68ea Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 2 Sep 2022 15:51:31 -0700
Subject: [PATCH] include missing system headers

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 brokerEnc.c         | 2 ++
 brokerOs.c          | 1 +
 mlog.c              | 1 +
 mofc/backend_sfcb.c | 2 +-
 sfcbdump.c          | 1 +
 sfcbdumpP32onI32.c  | 1 +
 sfcbsem.c           | 1 +
 trace.c             | 3 ++-
 trace.h             | 3 ++-
 9 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/brokerEnc.c b/brokerEnc.c
index 9115e71..889afcd 100644
--- a/brokerEnc.c
+++ b/brokerEnc.c
@@ -25,6 +25,8 @@
 #include "constClass.h"
 #include <sfcCommon/utilft.h>
 
+#include <string.h> /* strcasecmp */
+
 extern const char *opGetClassNameChars(const CMPIObjectPath * cop);
 extern const char *opGetNameSpaceChars(const CMPIObjectPath * cop);
 extern CMPIConstClass *getConstClass(const char *ns, const char *cn);
diff --git a/brokerOs.c b/brokerOs.c
index 8d73a0b..b1427fd 100644
--- a/brokerOs.c
+++ b/brokerOs.c
@@ -22,6 +22,7 @@
 #include <pthread.h>
 #include "native.h"
 #include <stdlib.h>
+#include <string.h> /* strcmp */
 
 static char    *
 resolveFileName(const char *filename)
diff --git a/mlog.c b/mlog.c
index a2d9eb7..6d9cd29 100644
--- a/mlog.c
+++ b/mlog.c
@@ -26,6 +26,7 @@ const char     *_mlog_id =
 #include <syslog.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <string.h> /* strcat */
 #include <errno.h>
 #include <signal.h>
 #include "trace.h"              /* for setSignal() */
diff --git a/mofc/backend_sfcb.c b/mofc/backend_sfcb.c
index 614abcd..99d4061 100644
--- a/mofc/backend_sfcb.c
+++ b/mofc/backend_sfcb.c
@@ -29,7 +29,7 @@
 #include "backend.h"
 #include "objectpath.h"
 #include <sys/utsname.h>
-
+#include <string.h>
 
 extern CMPIStatus sfcb_simpleArrayAdd(CMPIArray * array, CMPIValue * val, CMPIType type);
 extern CMPIObjectPath *getObjectPath(char *path, char **msg);
diff --git a/sfcbdump.c b/sfcbdump.c
index 8a9c335..aa8559c 100644
--- a/sfcbdump.c
+++ b/sfcbdump.c
@@ -23,6 +23,7 @@
 #include <errno.h>
 #include <stddef.h>
 #include <getopt.h>
+#include <string.h> /* strerror */
 #include "objectImpl.h"
 
 #define BINARY_NAME argv[0]
diff --git a/sfcbdumpP32onI32.c b/sfcbdumpP32onI32.c
index ccf87dc..3540751 100644
--- a/sfcbdumpP32onI32.c
+++ b/sfcbdumpP32onI32.c
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <stddef.h>
+#include <string.h>
 #include <getopt.h>
 #include "objectImpl.h"
 #include <byteswap.h>
diff --git a/sfcbsem.c b/sfcbsem.c
index 3f8de7f..1e6358b 100644
--- a/sfcbsem.c
+++ b/sfcbsem.c
@@ -21,6 +21,7 @@
 
 /* includes */
 #include <stdio.h>
+#include <string.h>
 #include <getopt.h>
 #include <errno.h>
 
diff --git a/trace.c b/trace.c
index 23597e1..c4f8011 100644
--- a/trace.c
+++ b/trace.c
@@ -25,6 +25,7 @@
 #include "native.h"
 #include <string.h>
 #include <time.h>
+#include <pthread.h>
 
 #include <sys/stat.h>
 #include <sys/wait.h>
@@ -50,7 +51,7 @@
 
 char           *processName = NULL;
 int             providerProcess = 0;
-int             idleThreadId = 0;
+pthread_t       idleThreadId = 0;
 int             terminating = 0;
 int             colorTrace;
 
diff --git a/trace.h b/trace.h
index ea39850..52d408d 100644
--- a/trace.h
+++ b/trace.h
@@ -25,6 +25,7 @@
 
 #include "mlog.h"
 
+#include <pthread.h>
 extern unsigned long _sfcb_trace_mask;
 /* use pointer indirect _sfcb_trace_mask to allow shared memory flag */
 extern unsigned long *_ptr_sfcb_trace_mask;
@@ -162,7 +163,7 @@ extern sigHandler *setSignal(int sn, sigHandler * sh, int flags);
 
 extern char    *processName;
 extern int      providerProcess;
-extern int      idleThreadId;
+extern pthread_t      idleThreadId;
 extern int      terminating;
 
 #endif
-- 
2.37.3