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 479BF41CE2; Sun, 19 Feb 2023 18:50:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E39B42D47; Sun, 19 Feb 2023 18:50:26 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id A71EF42D39 for ; Sun, 19 Feb 2023 18:50:20 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id e4so1478410plj.13 for ; Sun, 19 Feb 2023 09:50:20 -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=LE4eAZE24c4KMnIcKr+v0Wc0QMt/EsBJf+GNC0uXGMe3O9Jxzq5+ykZgGGaEKO4Kj5 UNHgKEkKHU9NrwgUUukmmJeMWHgmzIgMJ36BCR/pzR0t5vocINMccWS59Q1Qx0UjamjA IgRJ+ptfYrzddtrSUDO/37VZ2hxOb415I09uM1MgYWxP5NBHz1vF6BC9LscmoCZRkr3W JaPggyTtF7buDh4Nj12LhgNmnT/EpLGECjl973tON919x3ZmjSFHPedLPvOBCOuTzjOQ /ImkOuIUqpXHa/w94Qe84QPQICkWRjLVUf3KPtHKRNYoEg1LcxfxdjI6EV7llCQtfKFr cnDA== 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=Kgz2CiBL3KGpd4OGnZrsExlgyAtUB2IlxGb+IF6uixUIW8pFUDdCS16YbcLf3jhG8h j5mibflU3hbWElMKmhXs56s7mmCQ9We4oMNcLl/ZkSAtS8CdQiWLz2e8v4A71SfcBa4I idVfvQi6gnxwMYu4P9j6Ph+kzE0Q3vaeXA6QAGy2tZGu1XCrp1cwCB8OpskyskndS92/ j04+lgfYlpm5KdTWSJ4bSMVBlR/5RhD6hIHPCxyHPJL6rix4Dtfta+M6yPjDESZcoCPy uvQ8EV8ME3xDokIs5a9rEcHzdHEdyN0lHU3xnpevNfW+9MrONKkBsJ/OdrpbKeBAwQio I/Uw== X-Gm-Message-State: AO0yUKWJtewZQ56308g8sLGxF6+/xQM4tLaqhrp431+w31ONkyqRTpoD WawyDBX5aShm2tYFyrUUC6sjImemEtrEdoIb5uY= X-Google-Smtp-Source: AK7set+vSovMHWRIZUFj/pXySP1ghhXvaAhliaW/anHAMC7d94cvrnMMQ6pf6cIpIdGa7rU+ryYVqQ== X-Received: by 2002:a17:903:2805:b0:19c:190d:a55e with SMTP id kp5-20020a170903280500b0019c190da55emr735751plb.65.1676829019690; Sun, 19 Feb 2023 09:50:19 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a13-20020a170902b58d00b001991e4e0bdcsm6238408pls.233.2023.02.19.09.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 09:50:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Reshma Pattan Subject: [PATCH v3 4/8] reorder: build on Windows Date: Sun, 19 Feb 2023 09:50:09 -0800 Message-Id: <20230219175013.10057-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230219175013.10057-1-stephen@networkplumber.org> References: <20230207001937.875608-1-stephen@networkplumber.org> <20230219175013.10057-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