X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fserial.c;h=5e3d732c005170bbcd4052841fad7dc3b27b342c;hb=813c1308fe53d16b419d22777f4d1124f06e7c9e;hp=ec02e48b5e8bd37a30601aa90c5332e9bcfecba1;hpb=68d4be032a35a0ab430a02e36f55256d80582ec8;p=mono.git diff --git a/support/serial.c b/support/serial.c index ec02e48b5e8..5e3d732c005 100644 --- a/support/serial.c +++ b/support/serial.c @@ -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) {