printf("errno: %d\n", errno);
lua_getglobal(L, "require");
lua_pushliteral(L, "mymodule");
lua_call(L, 1, 1);
printf("errno: %d\n", errno);
It is being required successfully.
The wrong thing here for me is that errno is set to 2 (No such file or directory) after the successful require.
It gives me some trouble later.
Iurii.