summaryrefslogtreecommitdiffstats
path: root/libdha/libdha.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdha/libdha.c')
-rw-r--r--libdha/libdha.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdha/libdha.c b/libdha/libdha.c
index ddd27aca5e..ccc6fc12f4 100644
--- a/libdha/libdha.c
+++ b/libdha/libdha.c
@@ -7,6 +7,7 @@
Modified for GATOS/win/gfxdump.
2002 - library implementation by Nick Kurshev
+ - some changes by Alex Beregszaszi
supported O/S's: SVR4, UnixWare, SCO, Solaris,
FreeBSD, NetBSD, 386BSD, BSDI BSD/386,
@@ -26,6 +27,14 @@
#include <sys/types.h>
#include <unistd.h>
+/* instead exit() use libdha_exit, and do the 'mother-application' deinit
+ only in this code */
+void libdha_exit(const char *message, int level)
+{
+ printf("libdha: FATAL: %s\n", message);
+ exit(level); /* FIXME */
+}
+
#if defined(_WIN32)
#include "sysdep/libdha_win32.c"
#elif defined (__EMX__)
@@ -97,3 +106,4 @@ void OUTPORT32(unsigned idx,unsigned val)
{
outl(idx,val);
}
+