net-misc/freerdp: fix build with USE=valgrind

Closes: https://bugs.gentoo.org/949919
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2025-02-18 14:45:30 -05:00
parent 45b43fa107
commit ce2eb85bf1
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
https://bugs.gentoo.org/949919
https://github.com/FreeRDP/FreeRDP/issues/11212
From 358c36486f419ee09441cf7d53409c31debb54c9 Mon Sep 17 00:00:00 2001
From: akallabeth <akallabeth@posteo.net>
Date: Tue, 18 Feb 2025 20:00:11 +0100
Subject: [PATCH] [cmake] fix missing include
---
cmake/CompilerSanitizerOptions.cmake | 1 +
1 file changed, 1 insertion(+)
diff --git a/cmake/CompilerSanitizerOptions.cmake b/cmake/CompilerSanitizerOptions.cmake
index b128cd8b7ff6..7c3da6cc2153 100644
--- a/cmake/CompilerSanitizerOptions.cmake
+++ b/cmake/CompilerSanitizerOptions.cmake
@@ -1,4 +1,5 @@
include(CMakeDependentOption)
+include(CheckIncludeFiles)
cmake_dependent_option(
WITH_VALGRIND_MEMCHECK "Compile with valgrind helpers." OFF

View File

@@ -108,6 +108,10 @@ RDEPEND="${COMMON_DEPEND}
smartcard? ( app-crypt/p11-kit )
"
PATCHES=(
"${FILESDIR}"/freerdp-3.12.0-cmake.patch
)
option() {
usex "$1" ON OFF
}