[syslinux:master] lua: the COM32 API does not provide signal.h
syslinux-bot for Ferenc Wágner
wferi at niif.hu
Sun Mar 2 13:48:09 PST 2014
Commit-ID: b24197836513d67e2fdad2f1f8254ed01775b32e
Gitweb: http://www.syslinux.org/commit/b24197836513d67e2fdad2f1f8254ed01775b32e
Author: Ferenc Wágner <wferi at niif.hu>
AuthorDate: Thu, 10 Oct 2013 17:06:35 +0200
Committer: Ferenc Wágner <wferi at niif.hu>
CommitDate: Sat, 1 Mar 2014 17:40:34 +0100
lua: the COM32 API does not provide signal.h
---
com32/lua/src/lua.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/com32/lua/src/lua.c b/com32/lua/src/lua.c
index 6a00712..40de6a9 100644
--- a/com32/lua/src/lua.c
+++ b/com32/lua/src/lua.c
@@ -5,7 +5,11 @@
*/
+#ifdef SYSLINUX
+#define signal(x,y)
+#else
#include <signal.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -91,6 +95,7 @@ static const char *progname = LUA_PROGNAME;
+#ifndef SYSLINUX
static void lstop (lua_State *L, lua_Debug *ar) {
(void)ar; /* unused arg. */
lua_sethook(L, NULL, 0, 0);
@@ -103,6 +108,7 @@ static void laction (int i) {
terminate process (default action) */
lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1);
}
+#endif
static void print_usage (const char *badoption) {
More information about the Syslinux-commits
mailing list