summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-03-13 18:06:50 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-03-31 01:03:13 +0100
commit816d76c53e246b97ee6dfc8343efa5959ea7270d (patch)
treebf8970da3925e531cb51017c0d319a4ec040eedc /app
parent302ea8e0fab497c55aaae51ebf084817958dec23 (diff)
downloaddpdk-next-eventdev-816d76c53e246b97ee6dfc8343efa5959ea7270d.zip
dpdk-next-eventdev-816d76c53e246b97ee6dfc8343efa5959ea7270d.tar.gz
dpdk-next-eventdev-816d76c53e246b97ee6dfc8343efa5959ea7270d.tar.xz
app/test: fix build with musl libc
Fix following build error with musl libc: app/test/test_eal_flags.c:152:55: error: 'O_RDONLY' undeclared (first use in this function) fd = openat(dirfd(hugepage_dir), dirent->d_name, O_RDONLY); ^~~~~~~~ Fixes: 45f1b6e8680a ("app: add new tests on eal flags") Cc: stable@dpdk.org Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_eal_flags.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index 1a64b09..d626dd7 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -17,6 +17,7 @@
#include <sys/wait.h>
#include <sys/file.h>
#include <limits.h>
+#include <fcntl.h>
#include <rte_per_lcore.h>
#include <rte_debug.h>