Mercurial > dropbear
comparison sshpty.c @ 704:523be406edc4
ignore I_PUSH if it isn't defined, for Android from Reimar Döffinger
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 19 Mar 2013 20:12:19 +0800 |
parents | a98a2138364a |
children |
comparison
equal
deleted
inserted
replaced
703:caa09587c3fb | 704:523be406edc4 |
---|---|
131 dropbear_log(LOG_ERR, | 131 dropbear_log(LOG_ERR, |
132 "error opening pts %.100s: %.100s", namebuf, strerror(errno)); | 132 "error opening pts %.100s: %.100s", namebuf, strerror(errno)); |
133 close(*ptyfd); | 133 close(*ptyfd); |
134 return 0; | 134 return 0; |
135 } | 135 } |
136 #ifndef HAVE_CYGWIN | 136 #if !defined(HAVE_CYGWIN) && defined(I_PUSH) |
137 /* | 137 /* |
138 * Push the appropriate streams modules, as described in Solaris pts(7). | 138 * Push the appropriate streams modules, as described in Solaris pts(7). |
139 * HP-UX pts(7) doesn't have ttcompat module. | 139 * HP-UX pts(7) doesn't have ttcompat module. |
140 */ | 140 */ |
141 if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) { | 141 if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) { |