From: Todd C. Miller Date: Sun, 17 Dec 2017 03:46:58 +0000 (-0700) Subject: Fix compilation error on FreeBSD X-Git-Tag: SUDO_1_8_22^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b78296197d7ec97f2ba57de74a2190ecfa55c890;p=sudo Fix compilation error on FreeBSD --- diff --git a/plugins/sudoers/starttime.c b/plugins/sudoers/starttime.c index 644c6ef9a..a142df16f 100644 --- a/plugins/sudoers/starttime.c +++ b/plugins/sudoers/starttime.c @@ -108,9 +108,9 @@ get_starttime(pid_t pid, struct timespec *starttime) } while (rc == -1 && errno == ENOMEM); if (rc != -1) { #if defined(HAVE_STRUCT_KINFO_PROC_KI_TDEV) - /* FreeBSD and macOS */ - starttime->tv_sec = ki_proc->ki_start->tv_sec; - starttime->tv_nsec = ki_proc->ki_start->tv_usec / 1000; + /* FreeBSD and Dragonfly */ + starttime->tv_sec = ki_proc->ki_start.tv_sec; + starttime->tv_nsec = ki_proc->ki_start.tv_usec / 1000; #else /* NetBSD and OpenBSD */ starttime->tv_sec = ki_proc->p_ustart_sec;