eal/windows: fix build
authorTal Shnaiderman <talshn@mellanox.com>
Tue, 21 Apr 2020 15:05:20 +0000 (18:05 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 21 Apr 2020 22:52:06 +0000 (00:52 +0200)
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>
lib/librte_eal/windows/include/fnmatch.h
lib/librte_eal/windows/include/pthread.h

index 41b5743..d0159f0 100644 (file)
@@ -14,6 +14,8 @@
 extern "C" {
 #endif
 
+#include <rte_common.h>
+
 #define FNM_NOMATCH 1
 
 /**
index 7c0caaf..0bbed5c 100644 (file)
@@ -17,6 +17,7 @@ extern "C" {
 #endif
 
 #include <windows.h>
+#include <rte_common.h>
 
 #define PTHREAD_BARRIER_SERIAL_THREAD TRUE