commit | 6809eaf0f86a59aade5dca9cc4097cdaa931d068 | [log] [tgz] |
---|---|---|
author | JP Abgrall <jpa@google.com> | Tue Mar 29 12:36:22 2011 -0700 |
committer | JP Abgrall <jpa@google.com> | Tue Mar 29 12:36:22 2011 -0700 |
tree | dbcb17c6a50966b31df97c916f9e4f72cddc3c9e | |
parent | 2e5dd6ef79c3769026454ab061750857c6fa593f [diff] [blame] |
adb: keep mac build happy Use FIONREAD instead of TIOCINQ Change-Id: Ic9db0228a51c546a798c70f08f2e644a1a376120
diff --git a/fdevent.c b/fdevent.c index b5dfb41..5c374a7 100644 --- a/fdevent.c +++ b/fdevent.c
@@ -551,7 +551,7 @@ subproc_fde->force_eof = 1; int rcount = 0; - ioctl(subproc_fd, TIOCINQ, &rcount); + ioctl(subproc_fd, FIONREAD, &rcount); D("subproc with fd=%d has rcount=%d err=%d\n", subproc_fd, rcount, errno);