]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Add HAVE_EPOLL check to fix macOS build failure
authorJoerg Mayer <jmayer@loplof.de>
Thu, 29 Jul 2021 06:41:00 +0000 (23:41 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 29 Jul 2021 18:27:35 +0000 (11:27 -0700)
Closes https://gitlab.com/openconnect/openconnect/-/issues/285

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
main.c

diff --git a/main.c b/main.c
index 1e64176c04fa92f03486973ac13bfed4dd37a060..bf16e8fc0acb63651f852f8f76470d0366b99289 100644 (file)
--- 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);
        }