Cleanup compiler warnings on Solaris and newer OSX clang compilers.
Add Large File support on Solaris
This commit is contained in:
parent
f179ba6ae2
commit
9bd8305943
5 changed files with 6 additions and 4 deletions
1
makefile
1
makefile
|
@ -134,6 +134,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||||
LIBPATH += /opt/sfw/lib
|
LIBPATH += /opt/sfw/lib
|
||||||
OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib
|
OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib
|
||||||
endif
|
endif
|
||||||
|
OS_CCDEFS += -D_LARGEFILE_SOURCE
|
||||||
else
|
else
|
||||||
ifeq (cygwin,$(OSTYPE))
|
ifeq (cygwin,$(OSTYPE))
|
||||||
# use 0readme_ethernet.txt documented Windows pcap build components
|
# use 0readme_ethernet.txt documented Windows pcap build components
|
||||||
|
|
|
@ -232,7 +232,7 @@ return fopen (file, mode);
|
||||||
|
|
||||||
/* 64b VMS */
|
/* 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
|
#define S_SIM_IO_FSEEK_EXT_ 1
|
||||||
|
|
||||||
int sim_fseek (FILE *st, t_addr offset, int whence)
|
int sim_fseek (FILE *st, t_addr offset, int whence)
|
||||||
|
|
|
@ -625,7 +625,7 @@ if (delta_rtime > 30000) { /* gap too big? */
|
||||||
return rtc_initd[tmr]; /* can't calibr */
|
return rtc_initd[tmr]; /* can't calibr */
|
||||||
}
|
}
|
||||||
new_gtime = sim_gtime();
|
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) {
|
if (rtc_elapsed[tmr] > sim_idle_stable) {
|
||||||
/* An asynchronous clock, merely needs to divide the number of */
|
/* An asynchronous clock, merely needs to divide the number of */
|
||||||
/* instructions actually executed by the clock rate. */
|
/* 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]);
|
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 */
|
return rtc_initd[tmr]; /* initial result until stable */
|
||||||
}
|
}
|
||||||
|
}
|
||||||
rtc_gtime[tmr] = new_gtime; /* save instruction time */
|
rtc_gtime[tmr] = new_gtime; /* save instruction time */
|
||||||
/* This self regulating algorithm depends directly on the assumption */
|
/* This self regulating algorithm depends directly on the assumption */
|
||||||
/* that this routine is called back after processing the number of */
|
/* that this routine is called back after processing the number of */
|
||||||
|
|
Loading…
Add table
Reference in a new issue