aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/jni
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2015-08-27 13:00:46 -0700
committerKenny Root <kenny@the-b.org>2015-08-27 13:01:58 -0700
commit63d5afd93ce1371809c7e21800d9091389672d87 (patch)
treec84cd35d9d9bed778cddfd5ebd7ea39fed831c4f /app/src/main/jni
parenta2232aae9e4d79f79a56e23d026ee0f03ff18792 (diff)
downloadconnectbot-63d5afd93ce1371809c7e21800d9091389672d87.tar.gz
connectbot-63d5afd93ce1371809c7e21800d9091389672d87.tar.bz2
connectbot-63d5afd93ce1371809c7e21800d9091389672d87.zip
Remove reference to grantpt
grantpt doesn't do anything on Android since it uses devpts.
Diffstat (limited to 'app/src/main/jni')
-rw-r--r--app/src/main/jni/com_google_ase_Exec.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/jni/com_google_ase_Exec.cpp b/app/src/main/jni/com_google_ase_Exec.cpp
index b2fa39f..a9d1aba 100644
--- a/app/src/main/jni/com_google_ase_Exec.cpp
+++ b/app/src/main/jni/com_google_ase_Exec.cpp
@@ -90,7 +90,12 @@ static int create_subprocess(
}
fcntl(ptm, F_SETFD, FD_CLOEXEC);
- if(grantpt(ptm) || unlockpt(ptm) ||
+ if(
+#if !defined(ANDROID)
+ /* this actually doesn't do anything on Android */
+ grantpt(ptm) ||
+#endif
+ unlockpt(ptm) ||
ptsname_r(ptm, devname, sizeof(devname))){
LOG("[ trouble with /dev/ptmx - %s ]\n", strerror(errno));
return -1;