diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-09-06 18:08:25 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-09-07 16:44:54 -0700 |
| commit | 1d42950097091415b85e111813f132bf89e0e26b (patch) | |
| tree | 0b276bceb7372d1552cdfbb1b73d00403a0f1f92 | |
| parent | 0abaecf0a63066bdb8f5a0cfb743c94b306ddf40 (diff) | |
| download | meta-openembedded-1d42950097091415b85e111813f132bf89e0e26b.tar.gz | |
sblim-sfcb: Include config.h before using CONFIG_ERROR_H
Fix use before definition case.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-Replace-need-for-error.h-when-it-does-not-exist.patch | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-Replace-need-for-error.h-when-it-does-not-exist.patch b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-Replace-need-for-error.h-when-it-does-not-exist.patch index e723050237..9bb9f44344 100644 --- a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-Replace-need-for-error.h-when-it-does-not-exist.patch +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-Replace-need-for-error.h-when-it-does-not-exist.patch | |||
| @@ -16,8 +16,6 @@ Upstream-Status: Pending | |||
| 16 | trace.c | 4 +++- | 16 | trace.c | 4 +++- |
| 17 | 5 files changed, 24 insertions(+), 5 deletions(-) | 17 | 5 files changed, 24 insertions(+), 5 deletions(-) |
| 18 | 18 | ||
| 19 | diff --git a/brokerUpc.c b/brokerUpc.c | ||
| 20 | index 17cbd9b..fe2b347 100644 | ||
| 21 | --- a/brokerUpc.c | 19 | --- a/brokerUpc.c |
| 22 | +++ b/brokerUpc.c | 20 | +++ b/brokerUpc.c |
| 23 | @@ -20,8 +20,11 @@ | 21 | @@ -20,8 +20,11 @@ |
| @@ -33,8 +31,6 @@ index 17cbd9b..fe2b347 100644 | |||
| 33 | #include "support.h" | 31 | #include "support.h" |
| 34 | #include "native.h" | 32 | #include "native.h" |
| 35 | #include <sfcCommon/utilft.h> | 33 | #include <sfcCommon/utilft.h> |
| 36 | diff --git a/configure.ac b/configure.ac | ||
| 37 | index ab2964e..d4915a1 100644 | ||
| 38 | --- a/configure.ac | 34 | --- a/configure.ac |
| 39 | +++ b/configure.ac | 35 | +++ b/configure.ac |
| 40 | @@ -517,7 +517,7 @@ fi | 36 | @@ -517,7 +517,7 @@ fi |
| @@ -46,8 +42,6 @@ index ab2964e..d4915a1 100644 | |||
| 46 | AC_CHECK_HEADERS([cmpi/cmpimacs.h cmpi/cmpift.h cmpi/cmpidt.h],[],[AC_MSG_ERROR([Could not find required CPMI header.])]) | 42 | AC_CHECK_HEADERS([cmpi/cmpimacs.h cmpi/cmpift.h cmpi/cmpidt.h],[],[AC_MSG_ERROR([Could not find required CPMI header.])]) |
| 47 | 43 | ||
| 48 | # Checks for typedefs, structures, and compiler characteristics. | 44 | # Checks for typedefs, structures, and compiler characteristics. |
| 49 | diff --git a/httpAdapter.c b/httpAdapter.c | ||
| 50 | index 2719e6c..e768972 100644 | ||
| 51 | --- a/httpAdapter.c | 45 | --- a/httpAdapter.c |
| 52 | +++ b/httpAdapter.c | 46 | +++ b/httpAdapter.c |
| 53 | @@ -71,7 +71,9 @@ | 47 | @@ -71,7 +71,9 @@ |
| @@ -61,11 +55,15 @@ index 2719e6c..e768972 100644 | |||
| 61 | /* should probably go into cimRequest.h */ | 55 | /* should probably go into cimRequest.h */ |
| 62 | #define CIM_PROTOCOL_ANY 0 | 56 | #define CIM_PROTOCOL_ANY 0 |
| 63 | #define CIM_PROTOCOL_CIM_XML 1 | 57 | #define CIM_PROTOCOL_CIM_XML 1 |
| 64 | diff --git a/support.c b/support.c | ||
| 65 | index c7bba8b..5b3eef1 100644 | ||
| 66 | --- a/support.c | 58 | --- a/support.c |
| 67 | +++ b/support.c | 59 | +++ b/support.c |
| 68 | @@ -32,7 +32,11 @@ | 60 | @@ -27,16 +27,20 @@ |
| 61 | * @sa native.h | ||
| 62 | */ | ||
| 63 | |||
| 64 | +#include "config.h" | ||
| 65 | #include <stdio.h> | ||
| 66 | #include <dlfcn.h> | ||
| 69 | #include "support.h" | 67 | #include "support.h" |
| 70 | #include <stdio.h> | 68 | #include <stdio.h> |
| 71 | #include <stdlib.h> | 69 | #include <stdlib.h> |
| @@ -77,7 +75,11 @@ index c7bba8b..5b3eef1 100644 | |||
| 77 | #include <errno.h> | 75 | #include <errno.h> |
| 78 | #include "native.h" | 76 | #include "native.h" |
| 79 | #include "trace.h" | 77 | #include "trace.h" |
| 80 | @@ -331,17 +335,25 @@ loadQualifierDeclMI(const char *provider, | 78 | -#include "config.h" |
| 79 | #include "control.h" | ||
| 80 | #include <pthread.h> | ||
| 81 | |||
| 82 | @@ -331,17 +335,25 @@ loadQualifierDeclMI(const char *provider | ||
| 81 | _SFCB_RETURN(NULL); | 83 | _SFCB_RETURN(NULL); |
| 82 | }; | 84 | }; |
| 83 | 85 | ||
| @@ -104,8 +106,6 @@ index c7bba8b..5b3eef1 100644 | |||
| 104 | /** | 106 | /** |
| 105 | * flag to ensure MM is initialized only once | 107 | * flag to ensure MM is initialized only once |
| 106 | */ | 108 | */ |
| 107 | diff --git a/trace.c b/trace.c | ||
| 108 | index d7f30db..438af46 100644 | ||
| 109 | --- a/trace.c | 109 | --- a/trace.c |
| 110 | +++ b/trace.c | 110 | +++ b/trace.c |
| 111 | @@ -279,7 +279,9 @@ _sfcb_trap(int tn) | 111 | @@ -279,7 +279,9 @@ _sfcb_trap(int tn) |
| @@ -119,6 +119,3 @@ index d7f30db..438af46 100644 | |||
| 119 | sigHandler * | 119 | sigHandler * |
| 120 | setSignal(int sn, sigHandler * sh, int flags) | 120 | setSignal(int sn, sigHandler * sh, int flags) |
| 121 | { | 121 | { |
| 122 | -- | ||
| 123 | 2.14.1 | ||
| 124 | |||
