]> jfr.im git - solanum.git/blobdiff - ircd/ircd_signal.c
send: add sendto_one_multiline_* API
[solanum.git] / ircd / ircd_signal.c
index b60172952e35d27ca72c07d134496b4c0991df78..2c4070c1fe22246b6fc87eb0381fd5a43dc2bea1 100644 (file)
 #include "client.h"
 #include "send.h"
 
+#ifndef _WIN32
+
+#include <sys/types.h>
+#include <sys/wait.h>
+
 /*
  * dummy_handler - don't know if this is really needed but if alarm is still
  * being used we probably will
@@ -52,6 +57,9 @@ sigchld_handler(int sig)
 /*
  * sigterm_handler - exit the server
  */
+static void
+sigterm_handler(int sig) __attribute__((noreturn));
+
 static void
 sigterm_handler(int sig)
 {
@@ -171,3 +179,17 @@ setup_signals()
 
        sigprocmask(SIG_UNBLOCK, &sigs, NULL);
 }
+
+#else
+void
+setup_signals()
+{
+/* this is a stub for mingw32 */
+}
+
+void
+setup_reboot_signals()
+{
+/* this is a stub for mingw32 */
+}
+#endif