!5 lxcfs: fix missing include in tests
Merge pull request !5 from zhangsong234/master
This commit is contained in:
commit
ead745d0cc
12
0023-fix-missing-include-in-tests.patch
Normal file
12
0023-fix-missing-include-in-tests.patch
Normal 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>
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user