summaryrefslogtreecommitdiff
path: root/debian/patches/hardcode_ptm_device.diff
blob: 9f1df947aef9db0d3993f8b4591b2c10e9febbf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
In a build environment /dev/ptmx is not always present.
Bypass build time check as /dev/ptmx is alsways present at runtime.
---
 ConfigureChecks.cmake |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -176,13 +176,7 @@ if (UNIX)
     set(HAVE_OPENPTY)
 
     execute_process(
-      COMMAND sh -c "
-        for ptm in ptc ptmx ptm ptym/clone; do
-          if test -c /dev/$ptm; then
-            echo /dev/$ptm
-            break
-          fi
-        done"
+      COMMAND sh -c "echo /dev/ptmx"
       OUTPUT_VARIABLE PTM_DEVICE
       OUTPUT_STRIP_TRAILING_WHITESPACE)
     message(STATUS "PTY multiplexer: ${PTM_DEVICE}")