vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 74553a90a8ed281c7e8d08b7acad2b9bed9d2061
parent ec59bc19d2cabbc62f98adf0d0925ad93c1dc411
Author: Gregor Best <gbe@unobtanium.de>
Date:   Tue, 16 Sep 2014 13:25:18 +0200

Fix compilation on OpenBSD

Signed-off-by: Gregor Best <gbe@unobtanium.de>

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

diff --git a/vis.c b/vis.c @@ -14,6 +14,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #define _POSIX_SOURCE +/* Necessary for SIGWINCH on OpenBSD */ +#define _BSD_SOURCE #include <locale.h> #include <stdlib.h> #include <unistd.h>