diff options
-rw-r--r-- | boot/boot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/boot.c b/boot/boot.c index c7cda6ca..f797de31 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -865,7 +865,10 @@ error_t S_io_readable (mach_port_t object, int *amt) { - return EOPNOTSUPP; + if (object != pseudo_console) + return EOPNOTSUPP; + ioctl (0, FIONREAD, amt); + return 0; } error_t |