From 0b58023ad84ace260acca30d61e03ed3589dc037 Mon Sep 17 00:00:00 2001 From: zhangsong34 Date: Fri, 14 Feb 2020 14:21:28 +0800 Subject: [PATCH] lxcfs: fix missing include in tests Signed-off-by: zhangsong34 --- 0023-fix-missing-include-in-tests.patch | 12 ++++++++++++ lxcfs.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 0023-fix-missing-include-in-tests.patch diff --git a/0023-fix-missing-include-in-tests.patch b/0023-fix-missing-include-in-tests.patch new file mode 100644 index 0000000..77cf9c4 --- /dev/null +++ b/0023-fix-missing-include-in-tests.patch @@ -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 + #include + #include ++#include + #include + #include + #include diff --git a/lxcfs.spec b/lxcfs.spec index 6920590..4b200a9 100644 --- a/lxcfs.spec +++ b/lxcfs.spec @@ -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 -- Gitee