diff options
-rw-r--r-- | src/library.js | 2 | ||||
-rw-r--r-- | system/include/sys/select.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 32186eac..d2d61867 100644 --- a/src/library.js +++ b/src/library.js @@ -5678,7 +5678,7 @@ LibraryManager.library = { // http://pubs.opengroup.org/onlinepubs/009695399/functions/times.html // NOTE: This is fake, since we can't calculate real CPU time usage in JS. if (buffer !== 0) { - memset(buffer, 0, ___tms_struct_layout.__size__); + _memset(buffer, 0, ___tms_struct_layout.__size__); } return 0; }, diff --git a/system/include/sys/select.h b/system/include/sys/select.h index 47cef2e5..49bc034b 100644 --- a/system/include/sys/select.h +++ b/system/include/sys/select.h @@ -1,3 +1,6 @@ +#ifndef _SELECT_H +#define _SELECT_H int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); +#endif |