summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/nixio.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-02-08 20:57:36 +0000
committerSteven Barth <steven@midlink.org>2009-02-08 20:57:36 +0000
commit8dbb8a0ad386fd890f688109c44df0429c2af597 (patch)
tree19036f8126b2e78f88243f4e23829ce22674976f /libs/nixio/src/nixio.c
parent2e913fd28fd85daebd37347fd5677211a7cb0ea6 (diff)
Use poll() instead of select()
Reintroduce nanosleep()
Diffstat (limited to 'libs/nixio/src/nixio.c')
-rw-r--r--libs/nixio/src/nixio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/nixio/src/nixio.c b/libs/nixio/src/nixio.c
index 1152f2cc8..6f3e0793f 100644
--- a/libs/nixio/src/nixio.c
+++ b/libs/nixio/src/nixio.c
@@ -19,11 +19,8 @@
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
-#include <unistd.h>
-#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <sys/socket.h>
#include <errno.h>
#include "nixio.h"
@@ -109,7 +106,7 @@ LUALIB_API int luaopen_nixio(lua_State *L) {
nixio_open_sockopt(L);
nixio_open_bind(L);
nixio_open_address(L);
- nixio_open_select(L);
+ nixio_open_poll(L);
/* module version */
lua_pushnumber(L, VERSION);