diff options
author | Shaun Amott <shaun@FreeBSD.org> | 2014-01-16 19:31:03 +0000 |
---|---|---|
committer | Shaun Amott <shaun@FreeBSD.org> | 2014-01-16 19:31:03 +0000 |
commit | e89a2108130e65533009cc4cd6e23b56ad597610 (patch) | |
tree | 0dfaf5c450c83a52aff62178225ee7a26423ba3b /emulators/x49gp/files/patch-main.c | |
parent | Update to 2.4.2 (diff) |
Add x49gp - a HP49G+/50G graphics calculator emulator.
Diffstat (limited to 'emulators/x49gp/files/patch-main.c')
-rw-r--r-- | emulators/x49gp/files/patch-main.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emulators/x49gp/files/patch-main.c b/emulators/x49gp/files/patch-main.c new file mode 100644 index 000000000000..f39256817c4a --- /dev/null +++ b/emulators/x49gp/files/patch-main.c @@ -0,0 +1,17 @@ +--- main.c.orig 2014-01-09 17:47:52.000000000 +0000 ++++ main.c 2014-01-09 17:47:38.000000000 +0000 +@@ -25,6 +25,14 @@ + + #include "gdbstub.h" + ++static void *oom_check(void *ptr) ++{ ++ if (ptr == NULL) { ++ abort(); ++ } ++ return ptr; ++} ++ + static x49gp_t *x49gp; + + #ifdef QEMU_OLD // LD TEMPO HACK |