Group :: System/Libraries
RPM: dpdk
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0001-Do-not-redefine-strlcpy-and-strlcat.patch
Download
Download
From 5ad9419bfab49ef52f135f84c020a175b146d1fa Mon Sep 17 00:00:00 2001
From: Alexey Shabalin <shaba@altlinux.org>
Date: Wed, 3 May 2023 19:55:03 +0300
Subject: [PATCH] Do not redefine strlcpy and strlcat
---
dpdk/lib/eal/include/rte_string_fns.h | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/dpdk/lib/eal/include/rte_string_fns.h b/dpdk/lib/eal/include/rte_string_fns.h
index bb43b2c..1030910 100644
--- a/dpdk/lib/eal/include/rte_string_fns.h
+++ b/dpdk/lib/eal/include/rte_string_fns.h
@@ -75,24 +75,6 @@ rte_strlcat(char *dst, const char *src, size_t size)
return l + strlen(src);
}
-/* pull in a strlcpy function */
-#ifdef RTE_EXEC_ENV_FREEBSD
-#ifndef __BSD_VISIBLE /* non-standard functions are hidden */
-#define strlcpy(dst, src, size) rte_strlcpy(dst, src, size)
-#define strlcat(dst, src, size) rte_strlcat(dst, src, size)
-#endif
-
-#else /* non-BSD platforms */
-#ifdef RTE_USE_LIBBSD
-#include <bsd/string.h>
-
-#else /* no BSD header files, create own */
-#define strlcpy(dst, src, size) rte_strlcpy(dst, src, size)
-#define strlcat(dst, src, size) rte_strlcat(dst, src, size)
-
-#endif /* RTE_USE_LIBBSD */
-#endif /* FREEBSD */
-
/**
* Copy string src to buffer dst of size dsize.
* At most dsize-1 chars will be copied.
--
libgit2 1.6.4