Files
OpenBMC/meta-openembedded/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-include-missing-system-headers.patch
T

152 lines
3.8 KiB
Diff
Raw Normal View History

2026-04-23 17:07:55 +08:00
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