summaryrefslogtreecommitdiff
path: root/emulators/nonpareil/files/patch-src_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/nonpareil/files/patch-src_proc.c')
-rw-r--r--emulators/nonpareil/files/patch-src_proc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/nonpareil/files/patch-src_proc.c b/emulators/nonpareil/files/patch-src_proc.c
new file mode 100644
index 000000000000..7e5dcc549165
--- /dev/null
+++ b/emulators/nonpareil/files/patch-src_proc.c
@@ -0,0 +1,16 @@
+--- src/proc.c.orig 2008-08-24 00:37:18 UTC
++++ src/proc.c
+@@ -352,7 +352,13 @@ bool sim_read_object_file (sim_t *sim, c
+ // Microsoft freopen() isn't compliant with the C standard, which allows
+ // NULL for the filename if you're reopening an existing file handle.
+ #else
++ // XXX: for some reason this does not work.
++#if 0
+ f = freopen (NULL, "r", f);
++#else
++ fclose(f);
++ f = fopen(fn, "rb");
++#endif
+ #endif
+ if (! f)
+ {