From c321b3e6099e623210ade75b0280c0b78e6cd0f1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 25 Dec 2019 11:20:34 -0700 Subject: [PATCH] Add forward declaration of struct timeval for deprecated APIs. --- include/sudo_event.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sudo_event.h b/include/sudo_event.h index d74c90c09..70983a062 100644 --- a/include/sudo_event.h +++ b/include/sudo_event.h @@ -23,6 +23,8 @@ #include /* for sigatomic_t and NSIG */ #include "sudo_queue.h" +struct timeval; /* for deprecated APIs */ + /* Event types (keep in sync with sudo_plugin.h) */ #define SUDO_EV_TIMEOUT 0x01 /* fire after timeout */ #define SUDO_EV_READ 0x02 /* fire when readable */