]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-solaris.c
Merge branch 'monotonic-time' of https://github.com/themiron/ppp
[ppp.git] / pppd / sys-solaris.c
index 0b993a50139ed0136d8511f7ee5838c64ea6e0df..65b173a79695b7e80b8b421072532073be513ca0 100644 (file)
 #include <sys/dlpi.h>
 #include <sys/stat.h>
 #include <sys/mkdev.h>
+#include <sys/time.h>
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <net/route.h>
@@ -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);
+}