diff options
author | Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> | 2017-03-23 21:22:47 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2017-03-24 12:51:33 +0200 |
commit | cf6c87997f199b7681934b5d7c524bfff178b848 (patch) | |
tree | 5006820a6cf5ae91927c07f5b5f8bf077eec1f82 | |
parent | 1eadabe4453ef32eb6c3bc837094e1ca998affcc (diff) | |
download | rpm-cf6c87997f199b7681934b5d7c524bfff178b848.tar.gz |
Fix Large File Support (LFS) in sepdebugcrcfix tool and systemd_inhibit.so plugin
This problem was found by ALT rpm verify-elf brp script:
verify-elf: WARNING: ./usr/lib/rpm-plugins/systemd_inhibit.so: uses non-LFS functions: __lxstat
verify-elf: WARNING: ./usr/lib/rpm/sepdebugcrcfix: uses non-LFS functions: __xstat mmap open pread pwrite
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
-rw-r--r-- | plugins/systemd_inhibit.c | 2 | ||||
-rw-r--r-- | tools/sepdebugcrcfix.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/systemd_inhibit.c b/plugins/systemd_inhibit.c index 39fbf9106..29a7ae22d 100644 --- a/plugins/systemd_inhibit.c +++ b/plugins/systemd_inhibit.c @@ -1,3 +1,5 @@ +#include "system.h" + #include <dbus/dbus.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/tools/sepdebugcrcfix.c b/tools/sepdebugcrcfix.c index 1ce4f612f..fab26c7fa 100644 --- a/tools/sepdebugcrcfix.c +++ b/tools/sepdebugcrcfix.c @@ -16,6 +16,9 @@ /* Version 2013-06-24. */ #define _GNU_SOURCE + +#include "system.h" + #include <string.h> #include <fcntl.h> #include <errno.h> |