[dpdk-dev] [PATCH 08/15] app/test: include fcntl.h due to use of	O_RDONLY
    Natanael Copa 
    ncopa at alpinelinux.org
       
    Mon Mar 11 18:36:55 CET 2019
    
    
  
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 at alpinelinux.org>
---
 app/test/test_eal_flags.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index 81e345b87..775ccd3dd 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>
-- 
2.21.0
    
    
More information about the dev
mailing list