Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1531237
| From | Colin King <colin.king@canonical.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next] bpf: selftests: include <sys/resource.h> to fix build error |
| Date | 2016-11-28 12:50 +0100 |
| Message-ID | <sIsBA-1xz-27@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: Colin Ian King <colin.king@canonical.com>
Fix incomplete type build error on struct rlimit by including
<sys/resource.h>, fixes:
test_lru_map.c:552:9: error: variable ‘r’ has initializer
but incomplete type
struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
^
test_lru_map.c:552:21: error: ‘RLIM_INFINITY’ undeclared
(first use in this function)
struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
tools/testing/selftests/bpf/test_lru_map.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/bpf/test_lru_map.c b/tools/testing/selftests/bpf/test_lru_map.c
index 627757e..fde54a2 100644
--- a/tools/testing/selftests/bpf/test_lru_map.c
+++ b/tools/testing/selftests/bpf/test_lru_map.c
@@ -13,6 +13,7 @@
#include <assert.h>
#include <sched.h>
#include <sys/wait.h>
+#include <sys/resource.h>
#include <stdlib.h>
#include <time.h>
#include "bpf_sys.h"
--
2.10.2
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next] bpf: selftests: include <sys/resource.h> to fix build error Colin King <colin.king@canonical.com> - 2016-11-28 12:50 +0100 Re: [PATCH net-next] bpf: selftests: include <sys/resource.h> to fix build error Daniel Borkmann <daniel@iogearbox.net> - 2016-11-28 13:30 +0100
csiph-web