mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Build fixes.
This commit is contained in:
		
							
								
								
									
										2
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								format.c
									
									
									
									
									
								
							@@ -528,7 +528,7 @@ format_cb_current_command(struct format_tree *ft, struct format_entry *fe)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Callback for pane_current_path. */
 | 
					/* Callback for pane_current_path. */
 | 
				
			||||||
void
 | 
					static void
 | 
				
			||||||
format_cb_current_path(struct format_tree *ft, struct format_entry *fe)
 | 
					format_cb_current_path(struct format_tree *ft, struct format_entry *fe)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct window_pane	*wp = ft->wp;
 | 
						struct window_pane	*wp = ft->wp;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1066,6 +1066,9 @@ server_client_resize_force(struct window_pane *wp)
 | 
				
			|||||||
	ws.ws_col = wp->sx;
 | 
						ws.ws_col = wp->sx;
 | 
				
			||||||
	ws.ws_row = wp->sy - 1;
 | 
						ws.ws_row = wp->sy - 1;
 | 
				
			||||||
	if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
 | 
						if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
 | 
				
			||||||
 | 
					#ifdef __sun
 | 
				
			||||||
 | 
							if (errno != EINVAL && errno != ENXIO)
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
		fatal("ioctl failed");
 | 
							fatal("ioctl failed");
 | 
				
			||||||
	log_debug("%s: %%%u forcing resize", __func__, wp->id);
 | 
						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);
 | 
						memset(&ws, 0, sizeof ws);
 | 
				
			||||||
	ws.ws_col = wp->sx;
 | 
						ws.ws_col = wp->sx;
 | 
				
			||||||
	ws.ws_row = wp->sy;
 | 
						ws.ws_row = wp->sy;
 | 
				
			||||||
 | 
						if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
 | 
				
			||||||
#ifdef __sun
 | 
					#ifdef __sun
 | 
				
			||||||
		/*
 | 
							/*
 | 
				
			||||||
		 * Some versions of Solaris apparently can return an error when
 | 
							 * 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)
 | 
							if (errno != EINVAL && errno != ENXIO)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
		fatal("ioctl failed");
 | 
							fatal("ioctl failed");
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wp->flags &= ~PANE_RESIZE;
 | 
						wp->flags &= ~PANE_RESIZE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <vis.h>
 | 
					#include <time.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "tmux.h"
 | 
					#include "tmux.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,6 +21,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					#include <time.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "tmux.h"
 | 
					#include "tmux.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user