Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 989ae1f3651686c1f1046fe1c1596d564c3f452d Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Mon, 13 Dec 2021 14:33:01 +0100 |
| 4 | Subject: [PATCH] CMakeLists.txt: do not run cross-binary |
| 5 | |
| 6 | Upstream-Status: Inappropriate [issue reported at https://github.com/yusiwen/libptytty/issues/2] |
| 7 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 8 | --- |
| 9 | CMakeLists.txt | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 13 | index 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> |