[v4,8/8] eal: add missing include to fix build with musl libc
Checks
Commit Message
Solve the build error with musl libc:
../lib/librte_eal/unix/eal_file.c: In function 'eal_file_open':
../lib/librte_eal/unix/eal_file.c:22:15: error: 'O_RDONLY' undeclared
(first use in this function)
22 | sys_flags = O_RDONLY;
| ^~~~~~~~
Fixes: 176bb37ca6f3 ("eal: introduce internal wrappers for file operations")
Cc: stable@dpdk.org
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
lib/librte_eal/unix/eal_file.c | 1 +
1 file changed, 1 insertion(+)
@@ -4,6 +4,7 @@
#include <sys/file.h>
#include <sys/mman.h>
+#include <fcntl.h>
#include <unistd.h>
#include <rte_errno.h>