1From c5b15ae9636a3b73407372cce87eb40ea78a68ea Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Fri, 2 Sep 2022 15:51:31 -0700 4Subject: [PATCH] include missing system headers 5 6Upstream-Status: Pending 7 8Signed-off-by: Khem Raj <raj.khem@gmail.com> 9--- 10 brokerEnc.c | 2 ++ 11 brokerOs.c | 1 + 12 mlog.c | 1 + 13 mofc/backend_sfcb.c | 2 +- 14 sfcbdump.c | 1 + 15 sfcbdumpP32onI32.c | 1 + 16 sfcbsem.c | 1 + 17 trace.c | 3 ++- 18 trace.h | 3 ++- 19 9 files changed, 12 insertions(+), 3 deletions(-) 20 21diff --git a/brokerEnc.c b/brokerEnc.c 22index 9115e71..889afcd 100644 23--- a/brokerEnc.c 24+++ b/brokerEnc.c 25@@ -25,6 +25,8 @@ 26 #include "constClass.h" 27 #include <sfcCommon/utilft.h> 28 29+#include <string.h> /* strcasecmp */ 30+ 31 extern const char *opGetClassNameChars(const CMPIObjectPath * cop); 32 extern const char *opGetNameSpaceChars(const CMPIObjectPath * cop); 33 extern CMPIConstClass *getConstClass(const char *ns, const char *cn); 34diff --git a/brokerOs.c b/brokerOs.c 35index 8d73a0b..b1427fd 100644 36--- a/brokerOs.c 37+++ b/brokerOs.c 38@@ -22,6 +22,7 @@ 39 #include <pthread.h> 40 #include "native.h" 41 #include <stdlib.h> 42+#include <string.h> /* strcmp */ 43 44 static char * 45 resolveFileName(const char *filename) 46diff --git a/mlog.c b/mlog.c 47index a2d9eb7..6d9cd29 100644 48--- a/mlog.c 49+++ b/mlog.c 50@@ -26,6 +26,7 @@ const char *_mlog_id = 51 #include <syslog.h> 52 #include <stdarg.h> 53 #include <stdio.h> 54+#include <string.h> /* strcat */ 55 #include <errno.h> 56 #include <signal.h> 57 #include "trace.h" /* for setSignal() */ 58diff --git a/mofc/backend_sfcb.c b/mofc/backend_sfcb.c 59index 614abcd..99d4061 100644 60--- a/mofc/backend_sfcb.c 61+++ b/mofc/backend_sfcb.c 62@@ -29,7 +29,7 @@ 63 #include "backend.h" 64 #include "objectpath.h" 65 #include <sys/utsname.h> 66- 67+#include <string.h> 68 69 extern CMPIStatus sfcb_simpleArrayAdd(CMPIArray * array, CMPIValue * val, CMPIType type); 70 extern CMPIObjectPath *getObjectPath(char *path, char **msg); 71diff --git a/sfcbdump.c b/sfcbdump.c 72index 8a9c335..aa8559c 100644 73--- a/sfcbdump.c 74+++ b/sfcbdump.c 75@@ -23,6 +23,7 @@ 76 #include <errno.h> 77 #include <stddef.h> 78 #include <getopt.h> 79+#include <string.h> /* strerror */ 80 #include "objectImpl.h" 81 82 #define BINARY_NAME argv[0] 83diff --git a/sfcbdumpP32onI32.c b/sfcbdumpP32onI32.c 84index ccf87dc..3540751 100644 85--- a/sfcbdumpP32onI32.c 86+++ b/sfcbdumpP32onI32.c 87@@ -22,6 +22,7 @@ 88 #include <fcntl.h> 89 #include <errno.h> 90 #include <stddef.h> 91+#include <string.h> 92 #include <getopt.h> 93 #include "objectImpl.h" 94 #include <byteswap.h> 95diff --git a/sfcbsem.c b/sfcbsem.c 96index 3f8de7f..1e6358b 100644 97--- a/sfcbsem.c 98+++ b/sfcbsem.c 99@@ -21,6 +21,7 @@ 100 101 /* includes */ 102 #include <stdio.h> 103+#include <string.h> 104 #include <getopt.h> 105 #include <errno.h> 106 107diff --git a/trace.c b/trace.c 108index 23597e1..c4f8011 100644 109--- a/trace.c 110+++ b/trace.c 111@@ -25,6 +25,7 @@ 112 #include "native.h" 113 #include <string.h> 114 #include <time.h> 115+#include <pthread.h> 116 117 #include <sys/stat.h> 118 #include <sys/wait.h> 119@@ -50,7 +51,7 @@ 120 121 char *processName = NULL; 122 int providerProcess = 0; 123-int idleThreadId = 0; 124+pthread_t idleThreadId = 0; 125 int terminating = 0; 126 int colorTrace; 127 128diff --git a/trace.h b/trace.h 129index ea39850..52d408d 100644 130--- a/trace.h 131+++ b/trace.h 132@@ -25,6 +25,7 @@ 133 134 #include "mlog.h" 135 136+#include <pthread.h> 137 extern unsigned long _sfcb_trace_mask; 138 /* use pointer indirect _sfcb_trace_mask to allow shared memory flag */ 139 extern unsigned long *_ptr_sfcb_trace_mask; 140@@ -162,7 +163,7 @@ extern sigHandler *setSignal(int sn, sigHandler * sh, int flags); 141 142 extern char *processName; 143 extern int providerProcess; 144-extern int idleThreadId; 145+extern pthread_t idleThreadId; 146 extern int terminating; 147 148 #endif 149-- 1502.37.3 151 152