diff --git a/fix_implicit_declarations.patch b/fix_implicit_declarations.patch new file mode 100644 index 0000000..dae141a --- /dev/null +++ b/fix_implicit_declarations.patch @@ -0,0 +1,18 @@ +Author: Thomas Renninger + +Fix compiler warnings + +oa_soap_sensor.c:2209:9: note: include ‘’ or provide a declaration of ‘memcpy’ + +Index: openhpi-3.8.0/plugins/oa_soap/oa_soap_utils.h +=================================================================== +--- openhpi-3.8.0.orig/plugins/oa_soap/oa_soap_utils.h 2018-10-04 16:19:50.682977324 +0200 ++++ openhpi-3.8.0/plugins/oa_soap/oa_soap_utils.h 2018-10-04 16:20:29.393287079 +0200 +@@ -41,6 +41,7 @@ + /* Include files */ + #include + #include ++#include + + #include "oa_soap_calls.h" + #include "oa_soap.h" diff --git a/openhpi.changes b/openhpi.changes index 0219313..27d4a65 100644 --- a/openhpi.changes +++ b/openhpi.changes @@ -15,6 +15,8 @@ D openhpi-rpmlintrc - Disable ipmi plugin (deprecated) -> ipmidirect up-to-date - Still add a patch that ipmi plugin would still build: A fix_openipmi_typedef_selector_change.patch +- Fix build due to compiler warnings in SLE and Leap 15: +A fix_implicit_declarations.patch ------------------------------------------------------------------- Fri Feb 24 16:32:49 UTC 2017 - kkaempf@suse.com diff --git a/openhpi.spec b/openhpi.spec index db80c1a..458dc58 100644 --- a/openhpi.spec +++ b/openhpi.spec @@ -29,6 +29,7 @@ Source2: AUTHORS Patch0: unlink-pidfile-on-error.patch Patch2: openhpi-3.4.0-systemd.patch Patch3: fix_openipmi_typedef_selector_change.patch +Patch4: fix_implicit_declarations.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: docbook-toys