dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit b39055154cebea01c947db604eb24ac69e631680
parent 58ba4c0e8bd81d71e03ef7ec242a0c2d11d0d365
Author: Duncaen <mail@duncano.de>
Date:   Sat, 17 Jun 2017 11:25:24 +0200

OpenBSD fixes

Diffstat:
dvtm.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -38,6 +38,11 @@ #endif #include "vt.h" +/* Needed for SIGWINCH */ +#ifdef __OpenBSD__ +#include <sys/signal.h> +#endif + #ifdef PDCURSES int ESCDELAY; #endif @@ -167,8 +172,12 @@ typedef struct { } Editor; #define LENGTH(arr) (sizeof(arr) / sizeof((arr)[0])) +#ifndef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) +#endif +#ifndef MIN #define MIN(x, y) ((x) < (y) ? (x) : (y)) +#endif #define TAGMASK ((1 << LENGTH(tags)) - 1) #ifdef NDEBUG