diff options
author | JP Abgrall <jpa@google.com> | 2011-03-29 12:36:22 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2011-03-29 12:36:22 -0700 |
commit | b40367e7bc3f89c3875d50b29fa98c3a541e33a3 (patch) | |
tree | a51f8511fc8aa8e1437c6a874d948d8502964c47 | |
parent | bab2c6a883ed0c42cd2d19be027c4f6dc93202c5 (diff) | |
download | core-b40367e7bc3f89c3875d50b29fa98c3a541e33a3.tar.gz core-b40367e7bc3f89c3875d50b29fa98c3a541e33a3.tar.bz2 core-b40367e7bc3f89c3875d50b29fa98c3a541e33a3.zip |
adb: keep mac build happy
Use FIONREAD instead of TIOCINQ
Change-Id: Ic9db0228a51c546a798c70f08f2e644a1a376120
-rw-r--r-- | adb/fdevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/fdevent.c b/adb/fdevent.c index b5dfb414c..5c374a71b 100644 --- a/adb/fdevent.c +++ b/adb/fdevent.c @@ -551,7 +551,7 @@ static void fdevent_subproc_event_func(int fd, unsigned ev, void *userdata) 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); |