diff --git a/platforms/unix/vm-display-X11/sqUnixX11.c b/platforms/unix/vm-display-X11/sqUnixX11.c index d4e5f7e8bd..ee40c65619 100644 --- a/platforms/unix/vm-display-X11/sqUnixX11.c +++ b/platforms/unix/vm-display-X11/sqUnixX11.c @@ -6797,8 +6797,10 @@ int forgetXDisplay(void) stDisplay= null; /* Squeak display */ if (isConnectedToXServer) close(stXfd); +#if ! (HAVE_CONFIG_H && HAVE_EPOLL) if (stXfd >= 0) aioDisable(stXfd); +#endif stXfd= -1; /* X connection file descriptor */ stParent= null; stWindow= null; /* Squeak window */