diff --git a/audit-implicit-writev.patch b/audit-implicit-writev.patch new file mode 100644 index 0000000..d545e41 --- /dev/null +++ b/audit-implicit-writev.patch @@ -0,0 +1,24 @@ +Index: audit-2.7.7/audisp/audispd.c +=================================================================== +--- audit-2.7.7.orig/audisp/audispd.c ++++ audit-2.7.7/audisp/audispd.c +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include // for writev() and readv() + #include + #include + #include +Index: audit-2.7.7/audisp/audispd-builtins.c +=================================================================== +--- audit-2.7.7.orig/audisp/audispd-builtins.c ++++ audit-2.7.7/audisp/audispd-builtins.c +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include // for writev() + #include + #include "audispd-pconfig.h" + #include "audispd-builtins.h" diff --git a/audit-secondary.changes b/audit-secondary.changes index 6ab91b7..5897e7c 100644 --- a/audit-secondary.changes +++ b/audit-secondary.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 18 08:50:02 UTC 2017 - dimstar@opensuse.org + +- Add audit-implicit-writev.patch: include sys/uio.h to ensure + readv and writev are declared. + ------------------------------------------------------------------- Mon Jul 24 13:59:06 UTC 2017 - jengelh@inai.de diff --git a/audit-secondary.spec b/audit-secondary.spec index 9c8e84f..b1174f7 100644 --- a/audit-secondary.spec +++ b/audit-secondary.spec @@ -31,6 +31,7 @@ Patch1: audit-plugins-path.patch Patch2: audit-no-gss.patch Patch3: audit-allow-manual-stop.patch Patch4: audit-ausearch-do-not-require-tclass.patch +Patch5: audit-implicit-writev.patch BuildRequires: audit-devel = %{version} BuildRequires: autoconf >= 2.12 BuildRequires: gcc-c++ @@ -102,6 +103,7 @@ rm -rf audisp/plugins/prelude %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build autoreconf -fi