mirror of
https://github.com/wg/wrk
synced 2025-01-08 23:32:54 +08:00
make lua imports version independent
This commit is contained in:
parent
91655b5520
commit
9d71b2f6dd
3
Makefile
3
Makefile
@ -34,7 +34,8 @@ ifneq ($(WITH_LUAJIT),)
|
|||||||
CFLAGS += -I$(WITH_LUAJIT)/include
|
CFLAGS += -I$(WITH_LUAJIT)/include
|
||||||
LDFLAGS += -L$(WITH_LUAJIT)/lib
|
LDFLAGS += -L$(WITH_LUAJIT)/lib
|
||||||
else
|
else
|
||||||
DEPS += $(ODIR)/lib/libluajit-5.1.a
|
CFLAGS += -I$(ODIR)/include/luajit-2.0
|
||||||
|
DEPS += $(ODIR)/lib/libluajit-5.1.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(WITH_OPENSSL),)
|
ifneq ($(WITH_OPENSSL),)
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
#define SCRIPT_H
|
#define SCRIPT_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <luajit-2.0/lua.h>
|
#include <lua.h>
|
||||||
#include <luajit-2.0/lualib.h>
|
#include <lualib.h>
|
||||||
#include <luajit-2.0/lauxlib.h>
|
#include <lauxlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "wrk.h"
|
#include "wrk.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user