Permalink
Browse files

adb: keep mac build happy

Use FIONREAD instead of TIOCINQ

Change-Id: Ic9db0228a51c546a798c70f08f2e644a1a376120
  • Loading branch information...
1 parent bab2c6a commit b40367e7bc3f89c3875d50b29fa98c3a541e33a3 JP Abgrall committed Mar 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 adb/fdevent.c
View
@@ -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);

0 comments on commit b40367e

Please sign in to comment.