From: Joerg Mayer Date: Thu, 29 Jul 2021 06:41:00 +0000 (-0700) Subject: Add HAVE_EPOLL check to fix macOS build failure X-Git-Tag: v8.20~75 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a67630195ca48bca9a0f0e66df5bc3851df3e71c;p=users%2Fdwmw2%2Fopenconnect.git Add HAVE_EPOLL check to fix macOS build failure Closes https://gitlab.com/openconnect/openconnect/-/issues/285 Signed-off-by: Daniel Lenski --- diff --git a/main.c b/main.c index 1e64176c..bf16e8fc 100644 --- a/main.c +++ b/main.c @@ -1554,7 +1554,9 @@ static int background_self(struct openconnect_info *vpninfo, char *pidfile) pid); sig_vpninfo = NULL; /* Don't invoke EPOLL_CTL_DEL; it'll mess up the real one */ +#ifdef HAVE_EPOLL vpninfo->epoll_fd = -1; +#endif openconnect_vpninfo_free(vpninfo); exit(0); }