Build fixes.

This commit is contained in:
Nicholas Marriott
2017-05-31 16:29:07 +01:00
parent f17ecaa495
commit 113356c848
4 changed files with 7 additions and 3 deletions

View File

@@ -1066,6 +1066,9 @@ server_client_resize_force(struct window_pane *wp)
ws.ws_col = wp->sx;
ws.ws_row = wp->sy - 1;
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
#ifdef __sun
if (errno != EINVAL && errno != ENXIO)
#endif
fatal("ioctl failed");
log_debug("%s: %%%u forcing resize", __func__, wp->id);
@@ -1091,6 +1094,7 @@ server_client_resize_event(__unused int fd, __unused short events, void *data)
memset(&ws, 0, sizeof ws);
ws.ws_col = wp->sx;
ws.ws_row = wp->sy;
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
#ifdef __sun
/*
* Some versions of Solaris apparently can return an error when
@@ -1101,7 +1105,6 @@ server_client_resize_event(__unused int fd, __unused short events, void *data)
if (errno != EINVAL && errno != ENXIO)
#endif
fatal("ioctl failed");
}
wp->flags &= ~PANE_RESIZE;