blob: d3a458f100559439bbd3e66f159f09d2b41f2350 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 989ae1f3651686c1f1046fe1c1596d564c3f452d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Mon, 13 Dec 2021 14:33:01 +0100
4Subject: [PATCH] CMakeLists.txt: do not run cross-binary
5
6Upstream-Status: Inappropriate [issue reported at https://github.com/yusiwen/libptytty/issues/2]
7Signed-off-by: Alexander Kanavin <alex@linutronix.de>
8---
9 CMakeLists.txt | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/CMakeLists.txt b/CMakeLists.txt
13index c1ad6c0..3bd4d97 100644
14--- a/CMakeLists.txt
15+++ b/CMakeLists.txt
16@@ -271,7 +271,7 @@ if(NOT HAVE_UNIX_FDPASS)
17 message(FATAL_ERROR "libptytty requires unix-compliant filehandle passing ability")
18 endif()
19
20-check_c_source_runs(
21+check_c_source_compiles(
22 "
23 #include <grp.h>
24 #include <sys/stat.h>