~kvik/lu9-lua

991cff35adeae0b4753bdbacfad4bca5c9da8132 — kvik 2 years ago 791422c
lua: make it build
2 files changed, 11 insertions(+), 1 deletions(-)

M lua.c
M mkfile
M lua.c => lua.c +9 -0
@@ 50,6 50,15 @@ static void setsignal (int sig, void (*handler)(int)) {
  sigaction(sig, &sa, NULL);
}

#elif defined(LUA_USE_PLAN9)	/* }{ */

/*
 * Just pretend.
 */
#define SIG_DFL 0
#define SIGINT 0
#define setsignal(sig, handler)

#else           /* }{ */

#define setsignal            signal

M mkfile => mkfile +2 -1
@@ 4,6 4,7 @@ CFLAGS=-FTV -p -Ishim -DLUA_USE_PLAN9 -DLUA_UCID

LIB=liblua.a.$O
LUAC=$O.luac
LUA=$O.lua

SHIMOBJS=\
	shim.$O\


@@ 47,7 48,7 @@ LIBOBJS=\

ALLOBJS=$SHIMOBJS $COREOBJS $LIBOBJS

all:V: $LIB $LUAC
all:V: $LIB $LUA $LUAC

clean:V:
	rm -f *.[$OS] *.a.[$OS] [$OS].*