diff mbox series

[v3,08/15] app/test: include fcntl.h due to use of O_RDONLY

Message ID 20190313170657.16688-9-ncopa@alpinelinux.org (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers show
Series Build fixes for musl libc | expand


Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Natanael Copa March 13, 2019, 5:06 p.m. UTC
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);

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
 app/test/test_eal_flags.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index 1a64b0900..d626dd712 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>