Skip to content

Commit a67e952

Browse files
ThomasDevoogdtedsiper
authored andcommitted
out_cloudwatch_logs: fix strcasestr _GNU_SOURCE
See https://autobuild.buildroot.org/results/ade/ade1783e6a8a9025a4fc12a8370d479662b84ec4/build-end.log. In file included from /workdir/instance-0/output-1/build/fluent-bit-4.0.2/lib/cfl/lib/xxhash/xxh3.h:55, from /workdir/instance-0/output-1/build/fluent-bit-4.0.2/lib/cfl/include/cfl/cfl_hash.h:26, from /workdir/instance-0/output-1/build/fluent-bit-4.0.2/lib/cfl/include/cfl/cfl.h:33, from /workdir/instance-0/output-1/build/fluent-bit-4.0.2/include/fluent-bit/flb_config_map.h:27, from /workdir/instance-0/output-1/build/fluent-bit-4.0.2/include/fluent-bit/flb_output.h:36, from /workdir/instance-0/output-1/build/fluent-bit-4.0.2/plugins/out_cloudwatch_logs/cloudwatch_api.c:22: /workdir/instance-0/output-1/build/fluent-bit-4.0.2/lib/cfl/lib/xxhash/xxhash.h:3962:5: warning: #warning "XXH3 is highly inefficient without ARM or Thumb-2." [-Wcpp] 3962 | # warning "XXH3 is highly inefficient without ARM or Thumb-2." | ^~~~~~~ /workdir/instance-0/output-1/build/fluent-bit-4.0.2/plugins/out_cloudwatch_logs/cloudwatch_api.c: In function 'put_log_events': /workdir/instance-0/output-1/build/fluent-bit-4.0.2/plugins/out_cloudwatch_logs/cloudwatch_api.c:1540:66: error: implicit declaration of function 'strcasestr'; did you mean 'strcasecmp'? [-Wimplicit-function-declaration] 1540 | if (c->resp.data == NULL || c->resp.data_len == 0 || strcasestr(c->resp.data, AMZN_REQUEST_ID_HEADER) == NULL) { | ^~~~~~~~~~ | strcasecmp Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent 3ac496f commit a67e952

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/out_cloudwatch_logs/cloudwatch_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
* limitations under the License.
1818
*/
1919

20+
#define _GNU_SOURCE
21+
#include <string.h>
22+
2023
#include <fluent-bit/flb_compat.h>
2124
#include <fluent-bit/flb_info.h>
2225
#include <fluent-bit/flb_output.h>
@@ -41,7 +44,6 @@
4144

4245
#include <monkey/mk_core.h>
4346
#include <msgpack.h>
44-
#include <string.h>
4547
#include <stdio.h>
4648

4749
#ifndef FLB_SYSTEM_WINDOWS

0 commit comments

Comments
 (0)