diff options
author | Ferenc Wágner <wferi@niif.hu> | 2013-10-10 17:06:35 +0200 |
---|---|---|
committer | Ferenc Wágner <wferi@niif.hu> | 2014-03-01 17:40:34 +0100 |
commit | b24197836513d67e2fdad2f1f8254ed01775b32e (patch) | |
tree | eedbc26c4552e748f6778159136d61896e7b121e | |
parent | f419d317fa4c5da767c51011d0e5ef988f036aa2 (diff) | |
download | syslinux-b24197836513d67e2fdad2f1f8254ed01775b32e.tar.gz syslinux-b24197836513d67e2fdad2f1f8254ed01775b32e.tar.xz syslinux-b24197836513d67e2fdad2f1f8254ed01775b32e.zip |
lua: the COM32 API does not provide signal.h
-rw-r--r-- | com32/lua/src/lua.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/lua/src/lua.c b/com32/lua/src/lua.c index 6a007129..40de6a99 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) { |