Usermode/Telnet - Use _SysSelect instead of select (removes libposix requirement)
authorJohn Hodge (sonata) <[email protected]>
Mon, 10 Mar 2014 23:52:42 +0000 (07:52 +0800)
committerJohn Hodge (sonata) <[email protected]>
Mon, 10 Mar 2014 23:52:42 +0000 (07:52 +0800)
Usermode/Applications/telnet_src/main.c

index 2658548..56cffb4 100644 (file)
@@ -54,7 +54,7 @@ int main(int argc, char *argv[], char *envp[])
                FD_SET(server_fd, &fds);        FD_SET(server_fd, &err_fds);\r
                \r
                // Wait for data (no timeout)\r
-               rv = select(server_fd+1, &fds, NULL, &err_fds, NULL);\r
+               rv = _SysSelect(server_fd+1, &fds, NULL, &err_fds, NULL, 0);\r
                if( rv < 0 )    break;\r
                \r
                // Check for remote data avaliable\r

UCC git Repository :: git.ucc.asn.au