mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
Added Large File Support which was missing for NetBSD (and OpenBSD) hosts - reported by Felix Deichmann
This commit is contained in:
parent
414cf3335f
commit
3dd4121c78
@ -2718,7 +2718,7 @@ if (cptr) {
|
||||
cap = (uint32) get_uint (cptr, 10, 0xFFFFFFFF, &r);
|
||||
if ((sim_switches & SWMASK ('L')) == 0)
|
||||
cap = cap * 1954;
|
||||
if ((r != SCPE_OK) || (cap < RA8U_MINC) || (cap >= max))
|
||||
if ((r != SCPE_OK) || (cap < RA8U_MINC) || (cap > max))
|
||||
return SCPE_ARG;
|
||||
drv_tab[val].lbn = cap;
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@ return (t_offset)(ftello64 (st));
|
||||
|
||||
/* Apple OS/X */
|
||||
|
||||
#if defined (__APPLE__) || defined (__FreeBSD__)
|
||||
#if defined (__APPLE__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__OpenBSD__)
|
||||
#define S_SIM_IO_FSEEK_EXT_ 1
|
||||
int sim_fseeko (FILE *st, t_offset xpos, int origin)
|
||||
{
|
||||
|
||||
@ -41,7 +41,7 @@ int32 sim_finit (void);
|
||||
#if defined (__linux) || defined (__linux__) || defined (__hpux) || \
|
||||
(defined (VMS) && (defined (__ALPHA) || defined (__ia64)) && (__DECC_VER >= 60590001)) || \
|
||||
((defined(__sun) || defined(__sun__)) && defined(_LARGEFILE_SOURCE)) || \
|
||||
defined (_WIN32) || defined (__APPLE__) || defined (__FreeBSD__)
|
||||
defined (_WIN32) || defined (__APPLE__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__OpenBSD__)
|
||||
typedef t_int64 t_offset;
|
||||
#else
|
||||
typedef int32 t_offset;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user