eal/windows: fix build

Windows headers pthread.h and fnmatch.h
use rte_common types.

The error is: error: unknown type name '__rte_unused'

The fix adds the missing includes.

Bugzilla ID: 458
Fixes: f2fc83b40f06 ("replace unused attributes")

Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
This commit is contained in:
Tal Shnaiderman 2020-04-21 18:05:20 +03:00 committed by Thomas Monjalon
parent 1db72630da
commit 905a0c2082
2 changed files with 3 additions and 0 deletions
lib/librte_eal/windows/include

@ -14,6 +14,8 @@
extern "C" {
#endif
#include <rte_common.h>
#define FNM_NOMATCH 1
/**

@ -17,6 +17,7 @@ extern "C" {
#endif
#include <windows.h>
#include <rte_common.h>
#define PTHREAD_BARRIER_SERIAL_THREAD TRUE