openbsd-ports/emulators/simh/patches/patch-sim_fio_c
sthen be2f32a2c9 - Fix up the compiler flags and enable the extended file support
to allow for more sane hard drive sizes.  From Brad.

- Honour CC.
2011-12-24 12:57:10 +00:00

13 lines
439 B
Plaintext

$OpenBSD: patch-sim_fio_c,v 1.1 2011/12/24 12:57:10 sthen Exp $
--- sim_fio.c.orig Sun Nov 20 03:55:26 2011
+++ sim_fio.c Sun Nov 20 03:56:43 2011
@@ -302,7 +302,7 @@ return fseeko64 (st, xpos, origin);
/* Apple OS/X */
-#if defined (__APPLE__) || defined (__FreeBSD__)
+#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__OpenBSD__)
#define _SIM_IO_FSEEK_EXT_ 1
int sim_fseek (FILE *st, t_addr xpos, int origin)