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 1203441E23; Thu, 9 Mar 2023 22:31:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3525942B8E; Thu, 9 Mar 2023 22:31:38 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 35C184114B for ; Thu, 9 Mar 2023 22:31:35 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id v11so3435089plz.8 for ; Thu, 09 Mar 2023 13:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678397494; 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=4yMezFaBr8eQRUu+h200FOJGM7bDTZB/VOiX+GPdUb8=; b=RBiuY3AiLqdxEf/BRl7rMWNiblwTGa5ULpYlsLRckxcn3FmXpA+7u/PYNAfzsHS2dS FeJ6z2YtJ1vUAZQJj986MwQx4jqTdyYD3X2FF42b6/EnhOBEKd+1VbtVuoJACtJ+FxqW 6XJl/l1K13u+ZM+e6G/UJ0SbOUNuNT3l8iYz12vNe1ovjKWj/EWccfWn51VqAJyg5RTB Tk0Z/scRTsWTlVX0DDhyWqmI5+Zs+aQTV0JZitHn+D9+DuIL7QyDhavKdaqhxqjIdECc agzz3rRxIlEeIbx4xmqGtw01tM0ryhZNVLbRHaK9TUqGarUqHqG5V6V9+neZKtIvykep rZ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678397494; 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=4yMezFaBr8eQRUu+h200FOJGM7bDTZB/VOiX+GPdUb8=; b=IkTPuQ8ourRXXZ/iBssDrsVd4WMgORLAC6uc8VxYOA9aMwboiqos4Iz0iBrOxAuJuG 9U2/jWHjAMo+3xfMMRCzaclYDA8sRqlrH3uJYfD080b3bkyA6K69V2NIHj9ncPx4S/UA mGag4MnlBR8TJbM6bHmKiqAvJd0k/b41BHGNCzPavkjxyKHFs7ZrljIV8xs1AmThTE0d QyXdAm/3+ToP95P4InpkGxBO7ia2OGpygLRTRZlS4xZpoUaJCw6L6bT6XAqn8kArg8sr utu7LVaFckXWE1QQ24qlh1PoRDf4sgdRI8b8bQDS7s/rtplKo+gU+ZwrrD3kqi9ILoeD TSEw== X-Gm-Message-State: AO0yUKVOopj63Bq5PHRaD50vGww9zVLW5CB8x0MvLzCgCF8VxHQ8tDHE ylO2VxYi422ZUYjTdSaRsKsRddXHA7W2Qm/g12bJ1A== X-Google-Smtp-Source: AK7set8fLWXygwVS6USJOKlMDGe81cjx8wiIeie34ALGRnVLdULMnhzW9PD/1hFcQQ4e/2cYki7WNA== X-Received: by 2002:a17:902:8a90:b0:19b:33c0:4097 with SMTP id p16-20020a1709028a9000b0019b33c04097mr20473700plo.27.1678397494129; Thu, 09 Mar 2023 13:31:34 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id q3-20020a63cc43000000b00502e4015ff7sm64225pgi.23.2023.03.09.13.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 13:31:33 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff Subject: [PATCH v5 4/9] reorder: build on Windows Date: Thu, 9 Mar 2023 13:31:23 -0800 Message-Id: <20230309213128.34146-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230309213128.34146-1-stephen@networkplumber.org> References: <20221201014440.11896-1-stephen@networkplumber.org> <20230309213128.34146-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 f391597a7836..39e48c3df1fa 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 @@ -557,6 +547,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 6e029c9e02fd..9026403ea675 100644 --- a/lib/reorder/rte_reorder.c +++ b/lib/reorder/rte_reorder.c @@ -3,6 +3,7 @@ */ #include +#include #include #include -- 2.39.2