From 96da27494f89d75f8aec0c8894440c3f7482f54b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 26 Jan 2017 17:43:38 +0100 Subject: More lua --- src/lib/libc/stdlib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/libc/stdlib.c') diff --git a/src/lib/libc/stdlib.c b/src/lib/libc/stdlib.c index bc543be..6b200c2 100644 --- a/src/lib/libc/stdlib.c +++ b/src/lib/libc/stdlib.c @@ -1,5 +1,6 @@ #include #include +#include #include @@ -75,6 +76,10 @@ double strtod(const char *nptr, char **endptr) { } char *getenv(const char *name) { + // HACK + if (!strcmp(name, "LUA_INIT")) { + return "require 'init'"; + } // TODO return 0; } -- cgit v1.2.3