From 09e4eceacb082b8972c7ba695f2836cef229017c Mon Sep 17 00:00:00 2001 From: Jie Zhou Date: Thu, 30 Sep 2021 17:50:12 -0700 Subject: [PATCH] mempool/stack: build on Windows Enable build of mempool/stack on Windows. Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- drivers/mempool/stack/meson.build | 5 ----- lib/meson.build | 1 + lib/stack/rte_stack.c | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/mempool/stack/meson.build b/drivers/mempool/stack/meson.build index 371cf131b1..580dde79eb 100644 --- a/drivers/mempool/stack/meson.build +++ b/drivers/mempool/stack/meson.build @@ -1,11 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation -if is_windows - build = false - reason = 'not supported on Windows' -endif - sources = files('rte_mempool_stack.c') deps += ['stack'] diff --git a/lib/meson.build b/lib/meson.build index 1673ca4323..9c4841fe40 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -85,6 +85,7 @@ if is_windows 'gso', 'latencystats', 'pdump', + 'stack', ] # only supported libraries for windows endif diff --git a/lib/stack/rte_stack.c b/lib/stack/rte_stack.c index f1cbb9803f..5e56cd9f0c 100644 --- a/lib/stack/rte_stack.c +++ b/lib/stack/rte_stack.c @@ -3,6 +3,7 @@ */ #include +#include #include #include -- 2.20.1