Skip to content

Commit c080834

Browse files
committed
upgrade LuaJIT to 2.1.0-beta3
1 parent b9a832a commit c080834

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ifneq ($(WITH_LUAJIT),)
3434
CFLAGS += -I$(WITH_LUAJIT)/include
3535
LDFLAGS += -L$(WITH_LUAJIT)/lib
3636
else
37-
CFLAGS += -I$(ODIR)/include/luajit-2.0
37+
CFLAGS += -I$(ODIR)/include/luajit-2.1
3838
DEPS += $(ODIR)/lib/libluajit-5.1.a
3939
endif
4040

@@ -86,6 +86,7 @@ $(ODIR)/$(OPENSSL): deps/$(OPENSSL).tar.gz | $(ODIR)
8686
$(ODIR)/lib/libluajit-5.1.a: $(ODIR)/$(LUAJIT)
8787
@echo Building LuaJIT...
8888
@$(MAKE) -C $< PREFIX=$(abspath $(ODIR)) BUILDMODE=static install
89+
@cd $(ODIR)/bin && ln -s luajit-2.1.0-beta3 luajit
8990

9091
$(ODIR)/lib/libssl.a: $(ODIR)/$(OPENSSL)
9192
@echo Building OpenSSL...

deps/LuaJIT-2.0.4.tar.gz

-828 KB
Binary file not shown.

deps/LuaJIT-2.1.0-beta3.tar.gz

1000 KB
Binary file not shown.

src/script.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ static void set_fields(lua_State *, int, const table_field *);
2626
static void set_field(lua_State *, int, char *, int);
2727
static int push_url_part(lua_State *, char *, struct http_parser_url *, enum http_parser_url_fields);
2828

29-
static const struct luaL_reg addrlib[] = {
29+
static const struct luaL_Reg addrlib[] = {
3030
{ "__tostring", script_addr_tostring },
3131
{ "__gc" , script_addr_gc },
3232
{ NULL, NULL }
3333
};
3434

35-
static const struct luaL_reg statslib[] = {
35+
static const struct luaL_Reg statslib[] = {
3636
{ "__call", script_stats_call },
3737
{ "__index", script_stats_index },
3838
{ "__len", script_stats_len },
3939
{ NULL, NULL }
4040
};
4141

42-
static const struct luaL_reg threadlib[] = {
42+
static const struct luaL_Reg threadlib[] = {
4343
{ "__index", script_thread_index },
4444
{ "__newindex", script_thread_newindex },
4545
{ NULL, NULL }

0 commit comments

Comments
 (0)