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 76E69A0524; Tue, 13 Apr 2021 19:19:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD1141611F6; Tue, 13 Apr 2021 19:19:31 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 1F81C1611EF for ; Tue, 13 Apr 2021 19:19:29 +0200 (CEST) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 5D2E420B8004; Tue, 13 Apr 2021 10:19:28 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5D2E420B8004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1618334368; bh=d+6t1HfBNUuS4AQIKCJPh/cAUO41IJ9IivYFD7uzXjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=deFxg3VmIhL/JKu6XxkUmsLzeROXtMao6JMcujHUgoXTp0gLmurNK9qEayZmGbz7z DxC7VqE+Jrh1Rx9QdqVvIYWTDisNB+WlYCc6VIhRpZOuKJxzO2KzG1atJ7Xc1co0yH 5pW0qoIyZscrutTGijizKjxJw8eBZoHBrH9SSI5Q= From: Jie Zhou To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, xiaoyun.li@intel.com, roretzla@microsoft.com, pallavi.kadam@intel.com, thomas@monjalon.net, bruce.richardson@intel.com, ferruh.yigit@intel.com Date: Tue, 13 Apr 2021 10:19:20 -0700 Message-Id: <1618334363-15147-4-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1618334363-15147-1-git-send-email-jizh@linux.microsoft.com> References: <1616172695-28505-1-git-send-email-jizh@linux.microsoft.com> <1618334363-15147-1-git-send-email-jizh@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v3 3/6] app/testpmd: add required Macros 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 Sender: "dev" Signed-off-by: Jie Zhou Signed-off-by: Jie Zhou --- lib/librte_eal/windows/include/rte_os.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/windows/include/rte_os.h b/lib/librte_eal/windows/include/rte_os.h index f0512f20a..60a623d4c 100644 --- a/lib/librte_eal/windows/include/rte_os.h +++ b/lib/librte_eal/windows/include/rte_os.h @@ -61,6 +61,14 @@ extern "C" { #define unlink _unlink #endif +#define strcasecmp _stricmp +#define open _open +#define read _read + +#ifndef S_ISREG +#define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG) +#endif + /* cpu_set macros implementation */ #define RTE_CPU_AND(dst, src1, src2) CPU_AND(dst, src1, src2) #define RTE_CPU_OR(dst, src1, src2) CPU_OR(dst, src1, src2) -- 2.30.0.vfs.0.2