lxcfs: fix missing include in tests

Signed-off-by: zhangsong34 <zhangsong34@huawei.com>
This commit is contained in:
zhangsong34 2020-02-14 14:21:28 +08:00 committed by Grooooot
parent 688940ddb9
commit 0b58023ad8
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/tests/test_syscalls.c b/tests/test_syscalls.c
index 8561cfc..5a9f951 100644
--- a/tests/test_syscalls.c
+++ b/tests/test_syscalls.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/un.h>

View File

@ -32,10 +32,11 @@ Patch9019: 0019-use-bitwise-operators-only-on-unsigned.patch
Patch9020: 0020-lxcfs-proc_diskstats_read-func-obtain-data-from-blki.patch
Patch9021: 0021-remove-securec-functions.patch
Patch9022: 0022-add-secure-compile-option-in-Makefile.patch
Patch9023: 0023-fix-missing-include-in-tests.patch
#Dependency
BuildRequires: autoconf automake libtool help2man
BuildRequires: fuse-devel
BuildRequires: fuse-devel libattr-devel
%description
lxcfs is a simple userspace filesystem designed to make containers
@ -48,6 +49,7 @@ any runtime, written in C using libfuse and glib.
%build
autoreconf --force --install
%configure
make tests
make %{?_smp_mflags}
%install