From a67630195ca48bca9a0f0e66df5bc3851df3e71c Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Wed, 28 Jul 2021 23:41:00 -0700 Subject: [PATCH] Add HAVE_EPOLL check to fix macOS build failure Closes https://gitlab.com/openconnect/openconnect/-/issues/285 Signed-off-by: Daniel Lenski --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.50.1