diff --git a/cocos/CCConsole.cpp b/cocos/CCConsole.cpp index 5442b8ea6f..63e2d17b6f 100644 --- a/cocos/CCConsole.cpp +++ b/cocos/CCConsole.cpp @@ -52,6 +52,31 @@ void Console::cancel() } +ssize_t net_readline( int fd, void *vptr, size_t maxlen ) +{ + ssize_t n, rc; + char c, *ptr; + + ptr = (char*)vptr ; + + for( n=1; n