File 4735.patch of Package syslog-ng
From 13f331e742ee884145e4953f2be82ecac75a9421 Mon Sep 17 00:00:00 2001
From: Attila Szakacs <attila.szakacs@axoflow.com>
Date: Wed, 29 Nov 2023 10:13:45 +0100
Subject: [PATCH] on-error: include string.h
Fixes:
I: Program is using implicit definitions of functions getting
pointers or implemented by macros. These functions need to use their
correct prototypes to allow correct argument passing on e.g. x86_64 .
- Implicit memory/string functions need #include <string.h>.
- Implicit *printf functions need #include <stdio.h>.
- Implicit *printf functions need #include <stdio.h>.
- Implicit *read* functions need #include <unistd.h>.
- Implicit *recv* functions need #include <sys/socket.h>.
W: syslog-ng implicit-pointer-decl lib/on-error.c:39, 45
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
---
lib/on-error.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/on-error.c b/lib/on-error.c
index b9a26f2375..84ff7bd6cd 100644
--- a/lib/on-error.c
+++ b/lib/on-error.c
@@ -22,6 +22,8 @@
*
*/
+#include <string.h>
+
#include "on-error.h"
gboolean