summaryrefslogtreecommitdiff
path: root/src/crawl/crawl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-xsrc/crawl/crawl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp
index 460d41a..5c121c0 100755
--- a/src/crawl/crawl.cpp
+++ b/src/crawl/crawl.cpp
@@ -217,7 +217,9 @@ int main( int /* argc */, char *argv[] )
lua_newtable( luaVm.handle( ) );
lua_pushstring( luaVm.handle( ), "create" );
lua_pushlightuserdata( luaVm.handle( ), &urlNormalizers );
+#ifdef WITH_LUA
lua_pushcclosure( luaVm.handle( ), (lua_CFunction)urlNormalizers.luaCreateFunc, 1 );
+#endif
lua_settable( luaVm.handle( ), -3 );
lua_setglobal( luaVm.handle( ), "urlnormalizers" );