aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/haiku_io.c2
-rw-r--r--src/haiku_support.cc2
-rw-r--r--src/haiku_support.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/haiku_io.c b/src/haiku_io.c
index ff684df4337..f9fa4095f9f 100644
--- a/src/haiku_io.c
+++ b/src/haiku_io.c
@@ -145,7 +145,7 @@ haiku_read (enum haiku_event_type *type, void *buf, ssize_t len)
145 Input is blocked when an attempt to read is in progress. */ 145 Input is blocked when an attempt to read is in progress. */
146int 146int
147haiku_read_with_timeout (enum haiku_event_type *type, void *buf, ssize_t len, 147haiku_read_with_timeout (enum haiku_event_type *type, void *buf, ssize_t len,
148 time_t timeout, bool popup_menu_p) 148 bigtime_t timeout, bool popup_menu_p)
149{ 149{
150 int32 typ; 150 int32 typ;
151 port_id from = (popup_menu_p 151 port_id from = (popup_menu_p
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index cb8ffaf2d7b..27d4bbafaf7 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -2957,7 +2957,7 @@ BMenu_run (void *menu, int x, int y,
2957 2957
2958 if (infos[0].events & B_EVENT_READ) 2958 if (infos[0].events & B_EVENT_READ)
2959 { 2959 {
2960 if (!haiku_read_with_timeout (&type, buf, 200, 1000000, true)) 2960 while (!haiku_read_with_timeout (&type, buf, 200, 0, true))
2961 { 2961 {
2962 switch (type) 2962 switch (type)
2963 { 2963 {
diff --git a/src/haiku_support.h b/src/haiku_support.h
index 8b21fafad73..41bd1e1c84f 100644
--- a/src/haiku_support.h
+++ b/src/haiku_support.h
@@ -420,7 +420,7 @@ extern "C"
420 420
421 extern int 421 extern int
422 haiku_read_with_timeout (enum haiku_event_type *type, void *buf, ssize_t len, 422 haiku_read_with_timeout (enum haiku_event_type *type, void *buf, ssize_t len,
423 time_t timeout, bool popup_menu_p); 423 bigtime_t timeout, bool popup_menu_p);
424 424
425 extern int 425 extern int
426 haiku_write (enum haiku_event_type type, void *buf); 426 haiku_write (enum haiku_event_type type, void *buf);