You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
@@ -175,6 +175,11 @@ discard_buffer (int fd, gboolean input)
|
||||
gint32
|
||||
get_bytes_in_buffer (int fd, gboolean input)
|
||||
{
|
||||
#if defined(__HAIKU__)
|
||||
/* FIXME: Haiku doesn't support TIOCOUTQ nor FIONREAD on fds */
|
||||
return -1;
|
||||
#define TIOCOUTQ 0
|
||||
#endif
|
||||
gint32 retval;
|
||||
|
||||
if (ioctl (fd, input ? FIONREAD : TIOCOUTQ, &retval) == -1) {
|
||||
|
Reference in New Issue
Block a user