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 BEDA0A0548; Fri, 16 Apr 2021 19:57:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7D86B1609D0; Fri, 16 Apr 2021 19:57:50 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id C19131609D0 for ; Fri, 16 Apr 2021 19:57:48 +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 29FD720B83DB; Fri, 16 Apr 2021 10:57:48 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 29FD720B83DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1618595868; bh=Gkhvtb3D8iEbaN/ewQRoyLW16MaISJFpgoRZEv8r+Dk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sjEv6aAZR4ojCRtcbGIB+8ki3JVLuuk4PAhv9A6mBd51Dx9LTHzMxb9pJ+d0zJx/F jgfpT3MwVUqMxeHtd6aXenhXuWKe/9I7cON9yt0/jLH0rmMaf/okgOULscaBWFQBMc uOFpfyKBo9HF63yy4a+KcWcFafl1+752OFUvxW6A= 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: Fri, 16 Apr 2021 10:57:37 -0700 Message-Id: <1618595864-27839-3-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1618595864-27839-1-git-send-email-jizh@linux.microsoft.com> References: <1618594501-23795-10-git-send-email-jizh@linux.microsoft.com> <1618595864-27839-1-git-send-email-jizh@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v5 2/9] eal/windows: add necessary 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" Add required macros by testpmd on Windows in rte_os_shim.h Signed-off-by: Jie Zhou Signed-off-by: Jie Zhou --- lib/librte_eal/windows/include/rte_os_shim.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_eal/windows/include/rte_os_shim.h b/lib/librte_eal/windows/include/rte_os_shim.h index f40fb62d1..d0bb9e3b8 100644 --- a/lib/librte_eal/windows/include/rte_os_shim.h +++ b/lib/librte_eal/windows/include/rte_os_shim.h @@ -17,6 +17,7 @@ #define strdup(str) _strdup(str) #define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr) +#define strcasecmp _stricmp #define strncasecmp(s1, s2, count) _strnicmp(s1, s2, count) #define open(path, flags, ...) _open(path, flags, ##__VA_ARGS__) @@ -33,4 +34,12 @@ #define IPPROTO_SCTP 132 #endif +#ifndef IPDEFTTL +#define IPDEFTTL 64 +#endif + +#ifndef S_ISREG +#define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG) +#endif + #endif /* _RTE_OS_SHIM_ */ -- 2.30.0.vfs.0.2