libs/nixio: fix possible issue with nonblocking bind()
[oweals/luci.git] / libs / nixio / src / nixio.c
index 3086b978b3b35a812a953cd9d4bdef532970b9a0..70a77b4c9be9987d7c2c2df5cac8a5902c719a8d 100644 (file)
@@ -142,9 +142,12 @@ NIXIO_API int luaopen_nixio(lua_State *L) {
        nixio_open_bin(L);
        nixio_open_fs(L);
        nixio_open_user(L);
+
+#ifndef NO_TLS
        nixio_open_tls_crypto(L);
        nixio_open_tls_context(L);
        nixio_open_tls_socket(L);
+#endif
 
        /* module version */
        lua_pushinteger(L, VERSION);
@@ -195,6 +198,8 @@ NIXIO_API int luaopen_nixio(lua_State *L) {
        NIXIO_PUSH_CONSTANT(SIGSEGV);
 
 #ifndef __WINNT__
+       NIXIO_PUSH_CONSTANT(EALREADY);
+       NIXIO_PUSH_CONSTANT(EINPROGRESS);
        NIXIO_PUSH_CONSTANT(EWOULDBLOCK);
        NIXIO_PUSH_CONSTANT(ELOOP);
        NIXIO_PUSH_CONSTANT(EOVERFLOW);