fixes for mac

* per http://luajit.org/install.html, otherwise LuaJIT always fails
  to get desired memory chunk from mmap(2)
* kill a warning of clang
This commit is contained in:
Kefu Chai
2012-06-09 19:38:08 +08:00
committed by Qingping Hou
parent 8ce1aef0af
commit e39bbd7077
2 changed files with 4 additions and 1 deletions

View File

@@ -53,6 +53,9 @@ ifdef EMULATE_READER
-DEMULATE_READER_W=$(EMULATE_READER_W) \
-DEMULATE_READER_H=$(EMULATE_READER_H)
EMU_LDFLAGS?=$(shell sdl-config --libs)
ifeq "$(shell uname -s -m)" "Darwin x86_64"
EMU_LDFLAGS += -pagezero_size 10000 -image_base 100000000
endif
else
CFLAGS+= $(ARM_CFLAGS)
endif

2
pdf.c
View File

@@ -567,7 +567,7 @@ static int drawPage(lua_State *L) {
}
static int getCacheSize(lua_State *L) {
printf("## mupdf getCacheSize = %d\n", msize);
printf("## mupdf getCacheSize = %zu\n", msize);
lua_pushnumber(L, msize);
return 1;
}