aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmdsserver')
-rw-r--r--src/libmdsserver/macros.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index 2d3f7a3..215c51a 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <errno.h>
+#include <signal.h>
/*
#include <unistd.h>
@@ -363,5 +364,14 @@
#define exit_if(CONDITION, INSTRUCTIONS) if (CONDITION) { INSTRUCTIONS return 1; }
+/**
+ * The system is running out of memory.
+ * Quick, free up all your unused memory or kill yourself!
+ */
+#ifndef SIGDANGER
+# define SIGDANGER SIGRTMAX
+#endif
+
+
#endif