From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CBA8145FE4; Sat, 4 Jan 2025 23:10:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65AF940278; Sat, 4 Jan 2025 23:10:09 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id C5F9B4014F for ; Sat, 4 Jan 2025 23:10:08 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id EB6072121EBA; Sat, 4 Jan 2025 14:10:07 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com EB6072121EBA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1736028607; bh=fJ3VSPOsJ9Gpky0SJpqkItVK5TZc3sZPTa7iXf5iSYs=; h=From:To:Cc:Subject:Date:From; b=L0+p/vbzqexPYyt9Evn/gK59uAJ8BjlwFvJEI1AkUWTv6tn5bTB8epIRbVkxe22aF JvQOTBVbHTV3Du7hI0jnTR9lOizjaceJRoFqXkvEgQ0wdG4sPmWzdxs8tidxK+7X4P X0sVKpL5l6yWhnmFosLFcvtivzAIdCBdEAUIMZKg= From: Andre Muezerie To: Vladimir Medvedkin Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH] app/test-fib: enable test-fib on Windows Date: Sat, 4 Jan 2025 14:09:54 -0800 Message-Id: <1736028594-15393-1-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Removed a few includes which were not needed and included rte_os_shim.h to handle strtok_r which does not exist on Windows with that exact name. Signed-off-by: Andre Muezerie --- app/test-fib/main.c | 8 ++++++-- app/test-fib/meson.build | 6 ------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app/test-fib/main.c b/app/test-fib/main.c index 6479f48cdf..dd1a6d7297 100644 --- a/app/test-fib/main.c +++ b/app/test-fib/main.c @@ -5,8 +5,6 @@ #include #include #include -#include -#include #include #include @@ -15,9 +13,15 @@ #include #include #include +#include #include #include +#ifndef LINE_MAX +/* On Linux this constant is defined in limits.h, but not on Windows */ +#define LINE_MAX 2048 +#endif + #define PRINT_USAGE_START "%s [EAL options] --\n" #define GET_CB_FIELD(in, fd, base, lim, dlm) do { \ diff --git a/app/test-fib/meson.build b/app/test-fib/meson.build index eb36772cf3..f74ac651c0 100644 --- a/app/test-fib/meson.build +++ b/app/test-fib/meson.build @@ -1,11 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation -if is_windows - build = false - reason = 'not supported on Windows' - subdir_done() -endif - sources = files('main.c') deps += ['fib', 'lpm', 'net'] -- 2.47.0.vfs.0.3