From: Jie Zhou Date: Tue, 29 Jun 2021 20:50:15 +0000 (-0700) Subject: eal/windows: add macros required by testpmd X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=22f463e1813f5e8702797f65c51508de92fe8b32;p=dpdk.git eal/windows: add macros required by testpmd Add required macros by testpmd on Windows in rte_os_shim.h Signed-off-by: Jie Zhou Acked-by: Tal Shnaiderman Acked-by: Dmitry Kozlyuk --- diff --git a/lib/eal/windows/include/rte_os_shim.h b/lib/eal/windows/include/rte_os_shim.h index 1b314733b2..824d9748ba 100644 --- a/lib/eal/windows/include/rte_os_shim.h +++ b/lib/eal/windows/include/rte_os_shim.h @@ -21,6 +21,7 @@ #define strdup(str) _strdup(str) #define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr) #ifndef RTE_TOOLCHAIN_GCC +#define strcasecmp(s1, s2) _stricmp(s1, s2) #define strncasecmp(s1, s2, count) _strnicmp(s1, s2, count) #endif @@ -38,6 +39,14 @@ #define IPPROTO_SCTP 132 #endif +#ifndef IPDEFTTL +#define IPDEFTTL 64 +#endif + +#ifndef S_ISREG +#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) +#endif + #ifdef RTE_TOOLCHAIN_GCC #define TIME_UTC 1