app/test: fix build with musl libc
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 13 Mar 2019 17:06:50 +0000 (18:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 31 Mar 2019 00:03:13 +0000 (01:03 +0100)
commit816d76c53e246b97ee6dfc8343efa5959ea7270d
treebf8970da3925e531cb51017c0d319a4ec040eedc
parent302ea8e0fab497c55aaae51ebf084817958dec23
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>
app/test/test_eal_flags.c