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 D6BB241CE4; Mon, 20 Feb 2023 00:14:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B62CA42D9E; Mon, 20 Feb 2023 00:14:31 +0100 (CET) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id 92C7542D86 for ; Mon, 20 Feb 2023 00:14:24 +0100 (CET) Received: by mail-pj1-f44.google.com with SMTP id l4-20020a17090a49c400b002341fadc370so1398681pjm.1 for ; Sun, 19 Feb 2023 15:14:24 -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=6MDXl3a58TihrAFhr0ph7Ub0shzv4WyJL5l14M++f6l0EJxWEcnn8Kfjsfuw4O9MSa CrlkmTjeCVPi1hgpzmjpeT/9X1ofsrYuAj7U8kJq+UlSHgQYxSLxt1Eywvl3fUwXrRlq sTvbV7GmwxvSmp2/U9mmGkh5bLrTPK+ulJaRiHFBKDHapmaLm3tgCGX1FFrmLLSmZKr1 mf+ue2CJsO/lV7NsS6Y19tvQjLdf3Cg+4A8iTzT3ArEwboed1Yd4OA3FVTsuHXbSJbRE zGIhQADn/otEeo+NfjJFCooIYqLH1nfFEbQiR5SoaZ302aiscU3BmSnn6/K4y8e+okeI rK8Q== 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=stcTcY5f56b0USvkAUJL91nkwnsoTPC4AJHkQRN44NTL1xEzwPsl4KnAgUeO3pcqB5 5mFV+70/AH34/84gg90APdxKMIawgQzSNO50/MbdyuVErUw3NO96KiC/wdFonU0oihS+ uVuVYBaPJQ6EAPxAazuIsnLNQ+ZZQBFC+z7XTHBg66Oe1aNb2Napd94PaG3xenkkHbph trGfaeE6OWzdNcwKYTtjvXrYXNWMnwWEl3/MDFAwZwa1kqo2ciPSRSTemytkS3Hs78OH op5JJbKJyC29Obmmo7JQlqus8dDUE+BICwCTognYVZqfbk/AcLrWsqDQwAz0B3rDYb+B RlUg== X-Gm-Message-State: AO0yUKWqjmTs+p3a2HYKQjPZ7n3fWB79A8rcCnP8cWbGmMPgU/y+0idG A7z7vEd02LCtiXWLco+0qzaF+dSZY193W7mqQ0g= X-Google-Smtp-Source: AK7set8s/ToqeTvnla14ZIfJZ6NcLslIxcXZ8ZfRbbiGYTqgIhczA5z30tBeDa+OyLwSYeu0f4DI4A== X-Received: by 2002:a17:902:f98b:b0:19b:452:caa9 with SMTP id ky11-20020a170902f98b00b0019b0452caa9mr1959242plb.36.1676848463354; Sun, 19 Feb 2023 15:14:23 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id l10-20020a170902d34a00b00192fe452e17sm683336plk.162.2023.02.19.15.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 15:14:23 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Reshma Pattan Subject: [PATCH v4 4/9] reorder: build on Windows Date: Sun, 19 Feb 2023 15:14:11 -0800 Message-Id: <20230219231416.22524-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230219231416.22524-1-stephen@networkplumber.org> References: <20230207001937.875608-1-stephen@networkplumber.org> <20230219231416.22524-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