X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-solaris.c;h=65b173a79695b7e80b8b421072532073be513ca0;hp=0b993a50139ed0136d8511f7ee5838c64ea6e0df;hb=b1fcf16fa66159f380ee4abd7c9a76b59809dc7b;hpb=41a73232c16e9a063cfe3fad461c94af3f450f6c diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c index 0b993a5..65b173a 100644 --- a/pppd/sys-solaris.c +++ b/pppd/sys-solaris.c @@ -114,6 +114,7 @@ #include #include #include +#include #include #include #include @@ -2863,3 +2864,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); +}