tools/migration/Makefile: Don't install main.lua (we already install it as prosody...
[prosody.git] / util-src / signal.c
index fbcfabd902857327256ca597709af90ea718901d..961d2d3e06acda484613a0ebdfc54a8f25625586 100644 (file)
 #include <signal.h>
 #include <stdlib.h>
 
-#if defined(__unix__) || defined(__APPLE__)
-#include <sys/param.h>
-#endif
-
 #include "lua.h"
 #include "lauxlib.h"
 
@@ -169,13 +165,13 @@ static struct signal_event *last_event = NULL;
 
 static void sighook(lua_State *L, lua_Debug *ar)
 {
+  struct signal_event *event;
   /* restore the old hook */
   lua_sethook(L, Hsig, Hmask, Hcount);
 
   lua_pushstring(L, LUA_SIGNAL);
   lua_gettable(L, LUA_REGISTRYINDEX);
 
-  struct signal_event *event;
   while((event = signal_queue))
   {
     lua_pushnumber(L, event->Nsig);