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 32B1BA00C2; Thu, 1 Dec 2022 02:45:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4F1242D2C; Thu, 1 Dec 2022 02:44:48 +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 8BD7342D1F for ; Thu, 1 Dec 2022 02:44:47 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d18so216153pls.4 for ; Wed, 30 Nov 2022 17:44:47 -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=m2wPMSAaAhSqIOGhMIzPKFTL52e61nazMOBS/uAu934=; b=H3MTH2+f58sF2YMgMtbBsEkrzY2Q3GB8n2O3Oag0i55qOAr/p1bNLfv5a1Z2aupIgr NrPkqUOHSSDFzfvn/ufVV1WNVcFWP4OFYAQO/YYAG/3qJXIFQFriQJYvvPyumMntqeIG rq8+VtXbE3RcAq2jlxErkBsbFmFlBJnASW83L4vhmKvvsljOcfPe/kNNLwTluhFIbDdc rewYo6cQKM1F6lxL/JRnW67eo1//jmHOHASYYQcFCOpJJNtB2FEeWaFxyR20WGX8gQ96 DOs2us3okiZ75TDvY5WOr2Huu1/e8bfZ0TUjWXNXruEf3QFbcFYCYQOELUXibJ4nREbg MX6w== 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=m2wPMSAaAhSqIOGhMIzPKFTL52e61nazMOBS/uAu934=; b=7koTDk148iRr34P80yXJWsAMvVAWYWtvJ5/8qaWDT/eQOxsIWq6L8+ii3xGZt6WIgL RYbl0w6ahc1+jveNibXh0NTppJst/SUO/N6a72Jbb3OXnkrzMGKwgTgNWrMerlAZTMhq SkrVkS655SLPGpr4zoVw5qWgOwbp6jTnDG5FAAG2i/hxhLzcoBjkJoURYaZF/KX3gs0l Dqf0pos36neQgxpL92QhyZSkoBWsSUN9UBef9MLPM3Hnh+4SQqeJbcojAr9eaie4tYpj qq10zFRXVi+D9k6AUd+acH6KnTA6IIlx1m94jhr8gpeQy8DQCJJ/e9YTVkrVaxI15cqX h4eg== X-Gm-Message-State: ANoB5pklvQIpVLXSZfON2uBdBWObJ7E9317vE+73A8iS2C9ULQK90uLa So2z3fuAjn2iLxV4YLlDAPDMf8Y61yPwtdZ1 X-Google-Smtp-Source: AA0mqf4qa8vCs9XC8FJSBHXwbb36/C7uUBFCBgHEwXlohw2RRTVUz1lQYhOd7MWFxdm/jNnJz4t3yg== X-Received: by 2002:a17:90b:4a46:b0:218:bdfa:1ef with SMTP id lb6-20020a17090b4a4600b00218bdfa01efmr48454231pjb.100.1669859086426; Wed, 30 Nov 2022 17:44:46 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id h14-20020a170902680e00b00186ffe62502sm2125014plk.254.2022.11.30.17.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 17:44:45 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Reshma Pattan Subject: [PATCH 4/8] reorder: build on Windows Date: Wed, 30 Nov 2022 17:44:35 -0800 Message-Id: <20221201014440.11896-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201014440.11896-1-stephen@networkplumber.org> References: <20221201014440.11896-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 --- 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.35.1