Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,10 +1,11 @@
$NetBSD: patch-server-client.c,v 1.1 2013/04/02 10:59:50 fhajny Exp $
$NetBSD: patch-server-client.c,v 1.2 2013/10/06 09:01:41 obache Exp $
SunOS errno support needs the right include.
* SunOS errno support needs the right include.
* timersub is missing on Solaris10
--- server-client.c.orig 2013-04-02 10:54:02.404886167 +0000
--- server-client.c.orig 2013-03-26 19:22:31.000000000 +0000
+++ server-client.c
@@ -26,6 +26,10 @@
@@ -26,8 +26,24 @@
#include <time.h>
#include <unistd.h>
@@ -14,4 +15,18 @@ SunOS errno support needs the right include.
+
#include "tmux.h"
+#ifndef timersub
+# define timersub(a, b, result) \
+ do { \
+ (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
+ (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
+ if ((result)->tv_usec < 0) { \
+ --(result)->tv_sec; \
+ (result)->tv_usec += 1000000; \
+ } \
+ } while (0)
+#endif
+
void server_client_check_focus(struct window_pane *);
void server_client_check_resize(struct window_pane *);
void server_client_check_mouse(struct client *, struct window_pane *);