X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-solaris.c;h=83b1815080cd60be33e0e02aa283ed6bbb73b4be;hb=c78e3129d404f20d556f727ceee3704722de8cc7;hp=93d90332e0d4f2116b17800970e082cf193640dd;hpb=347904e33a8a1993316e57445a1ba8243cd947ce;p=ppp.git diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c index 93d9033..83b1815 100644 --- a/pppd/sys-solaris.c +++ b/pppd/sys-solaris.c @@ -114,6 +114,7 @@ #include #include #include +#include #include #include #include @@ -2783,3 +2784,13 @@ get_pty(master_fdp, slave_fdp, slave_name, uid) return 1; } + +/******************************************************************** + * + * get_time - Get current time, monotonic if possible. + */ +int +get_time(struct timeval *tv) +{ + return gettimeofday(tv, NULL); +}