freebsd-ports/emulators/nonpareil/files/patch-src_proc.c
Renato Botelho 644ec9e0cb Nonpareil is a high-fidelity simulator for calculators. It currently
supports many HP calculators models introduced between 1972 and
1982. Simulation fidelity is achieved through the use of the actual
microcode of the calculators, thus in most cases the simulation
behavior exactly matches that of the real calculator.

WWW: http://nonpareil.brouhaha.com/

PR:		ports/100834
Submitted by:	trasz <trasz at pin.if.uz.zgora.pl>
2006-07-27 18:46:50 +00:00

17 lines
467 B
C

diff -urN src.orig/proc.c src/proc.c
--- src.orig/proc.c Tue Jul 25 21:29:20 2006
+++ src/proc.c Tue Jul 25 21:30:08 2006
@@ -352,7 +352,13 @@
// 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)
{