Don't ue ioctl('ichr') for Haiku, we support select().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25424 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-05-10 14:53:02 +00:00
parent 1439f59995
commit 8e3b6823f2
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -157,7 +157,7 @@ _nc_timed_wait(int mode,
#if USE_FUNC_POLL #if USE_FUNC_POLL
struct pollfd fd_list[2]; struct pollfd fd_list[2];
struct pollfd *fds = fd_list; struct pollfd *fds = fd_list;
#elif defined(__BEOS__) #elif defined(__BEOS__) && !defined(__HAIKU__)
#elif HAVE_SELECT #elif HAVE_SELECT
static fd_set set; static fd_set set;
#endif #endif
@@ -258,7 +258,7 @@ _nc_timed_wait(int mode,
#endif #endif
#elif defined(__BEOS__) #elif defined(__BEOS__) && !defined(__HAIKU__)
/* /*
* BeOS's select() is declared in socket.h, so the configure script does * BeOS's select() is declared in socket.h, so the configure script does
* not see it. That's just as well, since that function works only for * not see it. That's just as well, since that function works only for
@@ -424,7 +424,7 @@ _nc_timed_wait(int mode,
result |= (1 << count); result |= (1 << count);
} }
} }
#elif defined(__BEOS__) #elif defined(__BEOS__) && !defined(__HAIKU__)
result = 1; /* redundant, but simple */ result = 1; /* redundant, but simple */
#elif HAVE_SELECT #elif HAVE_SELECT
if ((mode & 2) if ((mode & 2)
+1 -1
View File
@@ -298,7 +298,7 @@ check_pending(void)
if (poll(fds, 1, 0) > 0) { if (poll(fds, 1, 0) > 0) {
have_pending = TRUE; have_pending = TRUE;
} }
#elif defined(__BEOS__) #elif defined(__BEOS__) && !defined(__HAIKU__)
/* /*
* BeOS's select() is declared in socket.h, so the configure script does * BeOS's select() is declared in socket.h, so the configure script does
* not see it. That's just as well, since that function works only for * not see it. That's just as well, since that function works only for