Mercurial > ecos
changeset 2088:8c1285523bee
* cdl/ppp.cdl: Require CYGPKG_POSIX_TIMERS
* src/sys-ecos.c (gettimeofday): Removed, now get it from POSIX
| author | asl |
|---|---|
| date | Sun, 23 Oct 2005 20:46:20 +0000 |
| parents | 2cdf77a8a0b6 |
| children | 0a3305f3af20 |
| files | packages/net/ppp/current/ChangeLog packages/net/ppp/current/cdl/ppp.cdl packages/net/ppp/current/include/names.h packages/net/ppp/current/src/sys-ecos.c |
| diffstat | 4 files changed, 6 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/ppp/current/ChangeLog +++ b/packages/net/ppp/current/ChangeLog @@ -1,3 +1,8 @@ +2005-10-23 Andrew Lunn <andrew.lunn@ascom.ch> + + * cdl/ppp.cdl: Require CYGPKG_POSIX_TIMERS + * src/sys-ecos.c (gettimeofday): Removed, now get it from POSIX + 2005-07-30 Andrew Lunn <andrew.lunn@ascom.ch> * src/ppp_io.c (cyg_ppp_pppread): caddrt_t to stop compiler warnings.
--- a/packages/net/ppp/current/cdl/ppp.cdl +++ b/packages/net/ppp/current/cdl/ppp.cdl @@ -59,6 +59,7 @@ cdl_package CYGPKG_PPP { requires CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING requires CYGPKG_NET requires CYGPKG_IO_SERIAL_FLOW_CONTROL + requires CYGPKG_POSIX_TIMERS description "PPP support for eCos. This package contains the PPP daemon functionality, BSD kernel device drivers for
--- a/packages/net/ppp/current/include/names.h +++ b/packages/net/ppp/current/include/names.h @@ -246,7 +246,6 @@ #define establish_ppp cyg_ppp_establish_ppp #define get_host_seed cyg_ppp_get_host_seed #define get_idle_time cyg_ppp_get_idle_time -#define gettimeofday cyg_ppp_gettimeofday #define mrand48 cyg_ppp_mrand48 #define netmask cyg_ppp_netmask #define output cyg_ppp_output
--- a/packages/net/ppp/current/src/sys-ecos.c +++ b/packages/net/ppp/current/src/sys-ecos.c @@ -1845,20 +1845,6 @@ void syslog( int level, char *fmt, ... ) //===================================================================== -int gettimeofday(struct timeval *tv, struct timezone *tz) -{ - cyg_tick_count_t time = cyg_current_time(); - - tv->tv_sec = time/CYGNUM_HAL_RTC_DENOMINATOR; - tv->tv_usec = (time%CYGNUM_HAL_RTC_DENOMINATOR)*10000; - -// db_printf("%s: %d %d\n", __PRETTY_FUNCTION__, tv->tv_sec, tv->tv_usec); - - return 0; -} - -//===================================================================== - char *crypt (const char *key, const char *salt) { static char res[13];
