CONSOLE: Handle unimplemented features for console toolchains.

This commit is contained in:
Mike Pall
2012-06-09 20:54:34 +02:00
parent 9f443e8b89
commit 37be8a5478
6 changed files with 41 additions and 2 deletions

View File

@@ -519,7 +519,11 @@ static int lj_cf_package_seeall(lua_State *L)
static void setpath(lua_State *L, const char *fieldname, const char *envname,
const char *def)
{
#if LJ_TARGET_CONSOLE
const char *path = NULL;
#else
const char *path = getenv(envname);
#endif
if (path == NULL) {
lua_pushstring(L, def);
} else {