summaryrefslogtreecommitdiffstats
path: root/unsupported/UnsupportedCRT.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-24 18:55:49 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-24 18:55:49 -0200
commit26422af6088129b99864b75ed4ce5395aa578f2b (patch)
tree17894ef39e9191af62d68c47efe25459ef52233f /unsupported/UnsupportedCRT.c
parenteb229d9aefa622d3ae25fc7c92b9f66590216d8b (diff)
Files moved and added for supporting separate platforms.
Diffstat (limited to 'unsupported/UnsupportedCRT.c')
-rw-r--r--unsupported/UnsupportedCRT.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/unsupported/UnsupportedCRT.c b/unsupported/UnsupportedCRT.c
new file mode 100644
index 00000000..c4e65eeb
--- /dev/null
+++ b/unsupported/UnsupportedCRT.c
@@ -0,0 +1,21 @@
+/*
+htop - UnsupportedCRT.c
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "config.h"
+#include "CRT.h"
+#include <stdio.h>
+#include <stdlib.h>
+
+void CRT_handleSIGSEGV(int sgn) {
+ (void) sgn;
+ CRT_done();
+ fprintf(stderr, "\n\nhtop " VERSION " aborting.\n");
+ fprintf(stderr, "\nUnfortunately, you seem to be using an unsupported platform!");
+ fprintf(stderr, "\nPlease contact your platform package mantainer!\n\n");
+ abort();
+}
+