git: 62a77ff2da9e - main - sysutils/lizardfs: fix configure step

From: Adriaan de Groot <adridg_at_FreeBSD.org>
Date: Sun, 08 Jan 2023 21:36:19 UTC
The branch main has been updated by adridg:

URL: https://cgit.FreeBSD.org/ports/commit/?id=62a77ff2da9eb5d51e2ea202a03d741b4f05cf3f

commit 62a77ff2da9eb5d51e2ea202a03d741b4f05cf3f
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2022-12-24 22:27:31 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2023-01-08 21:35:12 +0000

    sysutils/lizardfs: fix configure step
---
 sysutils/lizardfs/files/patch-cmake_CheckIncludes.cmake | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/sysutils/lizardfs/files/patch-cmake_CheckIncludes.cmake b/sysutils/lizardfs/files/patch-cmake_CheckIncludes.cmake
new file mode 100644
index 000000000000..0dfe41ad59fb
--- /dev/null
+++ b/sysutils/lizardfs/files/patch-cmake_CheckIncludes.cmake
@@ -0,0 +1,13 @@
+--- cmake/CheckIncludes.cmake.orig	2022-12-24 21:43:32 UTC
++++ cmake/CheckIncludes.cmake
+@@ -3,7 +3,9 @@ include(CheckIncludeFiles)
+ function(check_includes INCLUDES)
+   set(INCLUDE_MISSING FALSE)
+   foreach(INCLUDE_FILE ${INCLUDES})
+-    check_include_files(${INCLUDE_FILE} ${INCLUDE_FILE}_FOUND)
++    string(MAKE_C_IDENTIFIER "${INCLUDE_FILE}" c_include)
++    check_include_files(${INCLUDE_FILE} ${c_include}_FOUND)
++    set(${INCLUDE_FILE}_FOUND ${${c_include}_FOUND})
+     if(NOT ${INCLUDE_FILE}_FOUND)
+       set(INCLUDE_MISSING TRUE)
+       set(MISSING_INCLUDES ${MISSING_INCLUDES} ${INCLUDE_FILE})