diff --git a/VAX/vax_mmu.c b/VAX/vax_mmu.c index f66b1c57..c3ffcd8e 100644 --- a/VAX/vax_mmu.c +++ b/VAX/vax_mmu.c @@ -632,4 +632,4 @@ return SCPE_OK; char *tlb_description (DEVICE *dptr) { return "translation buffer"; - } \ No newline at end of file + } diff --git a/makefile b/makefile index 0f0fa2d1..5f6eb835 100644 --- a/makefile +++ b/makefile @@ -134,6 +134,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) LIBPATH += /opt/sfw/lib OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib endif + OS_CCDEFS += -D_LARGEFILE_SOURCE else ifeq (cygwin,$(OSTYPE)) # use 0readme_ethernet.txt documented Windows pcap build components diff --git a/sim_fio.c b/sim_fio.c index 807100d6..07123762 100644 --- a/sim_fio.c +++ b/sim_fio.c @@ -232,7 +232,7 @@ return fopen (file, mode); /* 64b VMS */ -#if (defined (__ALPHA) || defined (__ia64)) && defined (VMS) && (__DECC_VER >= 60590001) +#if ((defined (__ALPHA) || defined (__ia64)) && defined (VMS) && (__DECC_VER >= 60590001)) || (defined(__sun__) && defined(_LARGEFILE_SOURCE)) #define S_SIM_IO_FSEEK_EXT_ 1 int sim_fseek (FILE *st, t_addr offset, int whence) diff --git a/sim_timer.c b/sim_timer.c index d813c615..c2429225 100644 --- a/sim_timer.c +++ b/sim_timer.c @@ -625,7 +625,7 @@ if (delta_rtime > 30000) { /* gap too big? */ return rtc_initd[tmr]; /* can't calibr */ } new_gtime = sim_gtime(); -if (sim_asynch_enabled && sim_asynch_timer) +if (sim_asynch_enabled && sim_asynch_timer) { if (rtc_elapsed[tmr] > sim_idle_stable) { /* An asynchronous clock, merely needs to divide the number of */ /* instructions actually executed by the clock rate. */ @@ -650,6 +650,7 @@ if (sim_asynch_enabled && sim_asynch_timer) sim_debug (DBG_CAL, &sim_timer_dev, "asynch not stable calibration result: %d\n", rtc_initd[tmr]); return rtc_initd[tmr]; /* initial result until stable */ } + } rtc_gtime[tmr] = new_gtime; /* save instruction time */ /* This self regulating algorithm depends directly on the assumption */ /* that this routine is called back after processing the number of */ diff --git a/swtp6800/common/mp-s.c b/swtp6800/common/mp-s.c index 47394233..1100e35c 100644 --- a/swtp6800/common/mp-s.c +++ b/swtp6800/common/mp-s.c @@ -328,4 +328,4 @@ int32 sio1d(int32 io, int32 data) return odata; } -/* end of mp-s.c */ \ No newline at end of file +/* end of mp-s.c */