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. Related: rhbz#2044062
This commit is contained in:
parent
4744e5a57d
commit
64a3ffcdb6
@ -12,6 +12,7 @@ Source1: openipmi.sysconf
|
||||
Source2: openipmi-helper
|
||||
Source3: ipmi.service
|
||||
Patch1: 0001-man.patch
|
||||
Patch2: include-config-h-cmdlang.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
|
||||
|
12
include-config-h-cmdlang.patch
Normal file
12
include-config-h-cmdlang.patch
Normal file
@ -0,0 +1,12 @@
|
||||
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>
|
Loading…
Reference in New Issue
Block a user