commit | f57dcbb615b9e2ca2ac5b97c66321682b94761ca | [log] [tgz] |
---|---|---|
author | Ed Maste <emaste@freebsd.org> | Tue Jun 10 21:33:43 2014 +0000 |
committer | Ed Maste <emaste@freebsd.org> | Tue Jun 10 21:33:43 2014 +0000 |
tree | 6520da54d59de0619ce78ae59703cae7e8c476de | |
parent | f5d07fa586c3fbcb0deee6824a1cd8b7b812c0d4 [diff] |
Remove duplicated code We preivously had two copies of ::BytesAvailable with only trivial differences between them, and fixes have been applied to only one of them. Instead of duplicating the whole function, hide the FD_SET differences behind a macro. This leaves only one small __APPLE__-specific #if block, and fixes ^C on non-__APPLE__ platforms. llvm-svn: 210592