[syslinux] [PATCH 04/21] lua: the COM32 API does not provide signal.h

Ferenc Wágner wferi at niif.hu
Tue Oct 15 11:03:32 PDT 2013


---
 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) {
-- 
1.7.10.4



More information about the Syslinux mailing list