From: Tal Shnaiderman Date: Tue, 21 Apr 2020 15:05:20 +0000 (+0300) Subject: eal/windows: fix build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=905a0c208267806f5e1f2021accec4302681e4a0;p=dpdk.git 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 --- diff --git a/lib/librte_eal/windows/include/fnmatch.h b/lib/librte_eal/windows/include/fnmatch.h index 41b574312c..d0159f07a0 100644 --- a/lib/librte_eal/windows/include/fnmatch.h +++ b/lib/librte_eal/windows/include/fnmatch.h @@ -14,6 +14,8 @@ extern "C" { #endif +#include + #define FNM_NOMATCH 1 /** diff --git a/lib/librte_eal/windows/include/pthread.h b/lib/librte_eal/windows/include/pthread.h index 7c0caaf07e..0bbed5c3b8 100644 --- a/lib/librte_eal/windows/include/pthread.h +++ b/lib/librte_eal/windows/include/pthread.h @@ -17,6 +17,7 @@ extern "C" { #endif #include +#include #define PTHREAD_BARRIER_SERIAL_THREAD TRUE