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 B12C641C26; Tue, 7 Feb 2023 01:20:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F5D342D1D; Tue, 7 Feb 2023 01:19:47 +0100 (CET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 2AC1C42B7E for ; Tue, 7 Feb 2023 01:19:44 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id h15so6611954plk.12 for ; Mon, 06 Feb 2023 16:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wthpt1yMKg88TFmLv0DjkbVFCCmdOum/X/tb28k3SBw=; b=ebY7FPTw8a22nMjbKu6GYRyqqGPUs3ukKpS5LhTMAoivhCOCUfEYhtM+/NMX4QVYws oCVeLvQR1BuBdXReNkux3Hc1S7nRcBBpaaiq9jQMEilmHq5PlLnA8cIgHGdGQ5vyWm7/ FPfuz4niUSoyN908ZE3PPFuSgsHiQdGG3X0xHn1e3reyhmlT0RuKGV/uQXn/EiqvAqde Yb5vtb8dcp9I5Brrd6HQtI6AJujpuyxsAFTXLjFJpOZljddxBfRFDnR66Cc4ttXZOHNe vpoi5U4Xz3gcH2zVrke0IeCZglj4poDYYW1dgZY1FkwiK7WJp9w1uhLv7c4kISVgiKxX DFcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wthpt1yMKg88TFmLv0DjkbVFCCmdOum/X/tb28k3SBw=; b=JePpD66fWOmTBBanoV4mXTLo4udEowc54J6YqWwb8gzwgR/3elOC8k4w3HN6yJV8Qz DaNWsJ0rAMJ6lMskH+QHl/6LU6+VKY5JtcVQjtuWbtkdtqlNasWjE/omEpm1nKNU4tum s6/XD4U8gT4rJ5Qbxma9yu9jQPLh3esb78FyJ2s+xbB62udT8WIuDUcRg3Q7CiRuuap8 g081+9leg3C2SgzWfbTa8aZZuChhY0Spj5EcEbYDylUN0Kx3DjoyCKgOiJwbuENhAo0r +4qrOiy2AOq7yXu2l7QcSeWJQyyAdVgk+53Ruu60e4aujAFb3EGK0jJbK0FLCDYBPL8X jMdQ== X-Gm-Message-State: AO0yUKWUoNA1SL8Z4AfnMI1QaCquGj6DjjBEhlPCMSweUW5WmjE8EQa8 n9giS91vvsAVDGZ3RP+k+2xVX/Ph78Tpj70pw6Y= X-Google-Smtp-Source: AK7set+tXsEgCf7eFWs+8AlMdpKUb73oX/uZil+TH4DoSkiR/F0tjJmugtyg5UXIrm74P4a0peYZZQ== X-Received: by 2002:a17:902:d4c5:b0:198:c335:ae95 with SMTP id o5-20020a170902d4c500b00198c335ae95mr1030668plg.0.1675729183154; Mon, 06 Feb 2023 16:19:43 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id o11-20020a637e4b000000b0046ff3634a78sm6617393pgn.71.2023.02.06.16.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 16:19:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Reshma Pattan Subject: [PATCH v2 4/8] reorder: build on Windows Date: Mon, 6 Feb 2023 16:19:33 -0800 Message-Id: <20230207001937.875608-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230207001937.875608-1-stephen@networkplumber.org> References: <20221201014440.11896-1-stephen@networkplumber.org> <20230207001937.875608-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This builds on Windows if sys/queue.h is included. Signed-off-by: Stephen Hemminger Acked-by: Tyler Retzlaff --- app/test/test_reorder.c | 11 ----------- lib/reorder/meson.build | 6 ------ lib/reorder/rte_reorder.c | 1 + 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/app/test/test_reorder.c b/app/test/test_reorder.c index f0714a5c18a3..9ebd91477536 100644 --- a/app/test/test_reorder.c +++ b/app/test/test_reorder.c @@ -11,16 +11,6 @@ #include #include #include - -#ifdef RTE_EXEC_ENV_WINDOWS -static int -test_reorder(void) -{ - printf("reorder not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} -#else - #include #include #include @@ -395,6 +385,5 @@ test_reorder(void) return unit_test_suite_runner(&reorder_test_suite); } -#endif /* !RTE_EXEC_ENV_WINDOWS */ REGISTER_TEST_COMMAND(reorder_autotest, test_reorder); diff --git a/lib/reorder/meson.build b/lib/reorder/meson.build index 621c1f350103..03aed53d9007 100644 --- a/lib/reorder/meson.build +++ b/lib/reorder/meson.build @@ -1,12 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -if is_windows - build = false - reason = 'not supported on Windows' - subdir_done() -endif - sources = files('rte_reorder.c') headers = files('rte_reorder.h') deps += ['mbuf'] diff --git a/lib/reorder/rte_reorder.c b/lib/reorder/rte_reorder.c index 385ee479da42..00e2cf043e04 100644 --- a/lib/reorder/rte_reorder.c +++ b/lib/reorder/rte_reorder.c @@ -3,6 +3,7 @@ */ #include +#include #include #include -- 2.39.1