ref: 991cff35adeae0b4753bdbacfad4bca5c9da8132
parent: 791422c1058d4973a6cb98ba17a4d1e2b276a41a
author: kvik <kvik@a-b.xyz>
date: Sat Apr 24 20:39:06 EDT 2021
lua: make it build
--- a/lua.c
+++ b/lua.c
@@ -50,6 +50,15 @@
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
--- a/mkfile
+++ b/mkfile
@@ -4,6 +4,7 @@
LIB=liblua.a.$O
LUAC=$O.luac
+LUA=$O.lua
SHIMOBJS=\
shim.$O\
@@ -47,7 +48,7 @@
ALLOBJS=$SHIMOBJS $COREOBJS $LIBOBJS
-all:V: $LIB $LUAC
+all:V: $LIB $LUA $LUAC
clean:V:
rm -f *.[$OS] *.a.[$OS] [$OS].*