libmemif: Fixed strlcpy symbol detection. 22/41722/3
authorAlexander Slesarev <[email protected]>
Thu, 17 Oct 2024 19:52:06 +0000 (15:52 -0400)
committerDave Wallace <[email protected]>
Thu, 20 Feb 2025 17:43:36 +0000 (17:43 +0000)
commit399d85137365bb6ba394359cfe1a9625cad8eec4
tree98eb3cfb2d140f714b71841332d3f77b8ff1e305
parent67067e18c862bafeed1921e13381af89885bde79
libmemif: Fixed strlcpy symbol detection.

Type: fix

libmemif can't be compiled with the modern glibc (since 2.38)
and musl as they include strlcpy for _GNU_SOURCE by default now.

The change introduced:

- proper symbol detection for both strlcpy and memfd_create;
- bumped CMake version requirements due to soon-to-be failed
compilation for very old version;
- fixed Unity compilation on the modern compilers (it has warnings,
but compiled with `-Werror`).

Change-Id: I48f9c410aa5405174dc6b65e9c9001e8b11ba276
Signed-off-by: Alexander Slesarev <[email protected]>
extras/libmemif/CMakeLists.txt
extras/libmemif/src/CMakeLists.txt
extras/libmemif/src/memif_private.h
extras/libmemif/test/suite_main/CMakeLists.txt
extras/libmemif/test/suite_socket/CMakeLists.txt