luci-0.9: merge r5954
[project/luci.git] / libs / nixio / src / nixio.c
index 3086b978b3b35a812a953cd9d4bdef532970b9a0..f6e8e184c0fa131cfdb9dff434da1ccd17da21b1 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);