OpenIPMI/include-config-h-cmdlang.patch
Pavel Cahyna e144f3ad66 Add a patch from C9S
Include config.h in cmdlang to avoid gethostbyname

cmdlang.c uses a configure macro to determine getaddrinfo support.

Without the macro defined, it uses gethostbyname instead of getaddrinfo.
This was actually happening erroneously, because the code did not
include config.h. Fix that.

Avoids one rpminspect/rpmdiff warning.
2024-02-12 11:31:52 +01:00

13 lines
338 B
Diff

diff -up OpenIPMI-2.0.32/cmdlang/cmdlang.c~ OpenIPMI-2.0.32/cmdlang/cmdlang.c
--- OpenIPMI-2.0.32/cmdlang/cmdlang.c~ 2021-01-22 19:51:28.000000000 +0100
+++ OpenIPMI-2.0.32/cmdlang/cmdlang.c 2022-01-28 11:55:42.375470392 +0100
@@ -32,6 +32,8 @@
*/
+#include <config.h>
+
#include <errno.h>
#include <string.h>
#include <ctype.h>