lib: update tailq api
[dpdk.git] / lib / librte_eal / common / include / rte_warnings.h
index 76abaa3..63b9492 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <dirent.h>
 #include <stdarg.h>
 #include <errno.h>
+#ifdef RTE_LIBRTE_EAL_LINUXAPP
+#include <dirent.h>
+#endif
 
 /* rte_snprintf uses snprintf, so include its definition before we poison the
  * functions, otherwise we'll get an error in it. */