luci-0.9: merge r5954
[project/luci.git] / libs / nixio / src / nixio.c
index 5749b3bfbf57b9ce5650b195efb88689217f47dd..f6e8e184c0fa131cfdb9dff434da1ccd17da21b1 100644 (file)
@@ -142,12 +142,15 @@ 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_pushnumber(L, VERSION);
+       lua_pushinteger(L, VERSION);
        lua_setfield(L, -2, "version");
 
        /* some constants */