191faa
diff -ru hexer-1.0.6.orig/edit.c hexer-1.0.6/edit.c
191faa
--- hexer-1.0.6.orig/edit.c	2020-04-24 15:06:48.000000000 +0200
191faa
+++ hexer-1.0.6/edit.c	2020-09-25 22:48:48.412100792 +0200
191faa
@@ -51,7 +51,7 @@
191faa
 #include <ctype.h>
191faa
 #include <assert.h>
191faa
 #include <unistd.h>
191faa
-#include <curses.h>
191faa
+#include <ncurses.h>
191faa
 #include <term.h>
191faa
 
191faa
 #include "buffer.h"
191faa
diff -ru hexer-1.0.6.orig/Makefile hexer-1.0.6/Makefile
191faa
--- hexer-1.0.6.orig/Makefile	2020-04-24 15:06:48.000000000 +0200
191faa
+++ hexer-1.0.6/Makefile	2020-09-25 22:53:09.703828744 +0200
191faa
@@ -19,7 +19,7 @@
191faa
 #LTERMCAP ?= -ltermcap
191faa
 #
191faa
 #  ...or this one if you want to use curses.
191faa
-LTERMCAP ?= -lcurses
191faa
+LTERMCAP ?= -lncurses -ltinfo
191faa
 
191faa
 CPPFLAGS_STD ?= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 \
191faa
 		-D_FILE_OFFSET_BITS=64
191faa
@@ -72,7 +72,7 @@
191faa
 	$(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -DMYCALC=1 -o $@ calc.c -lm
191faa
 
191faa
 bin2c: bin2c.c
191faa
-	$(CC_FOR_BUILD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ bin2c.c
191faa
+	$(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ bin2c.c
191faa
 
191faa
 helptext.c: help.txt bin2c
191faa
 	./bin2c -n helptext -o $@ help.txt
191faa
diff -ru hexer-1.0.6.orig/tio.c hexer-1.0.6/tio.c
191faa
--- hexer-1.0.6.orig/tio.c	2020-04-24 15:06:48.000000000 +0200
191faa
+++ hexer-1.0.6/tio.c	2020-09-25 22:48:26.032101493 +0200
191faa
@@ -73,7 +73,7 @@
191faa
 #include <unistd.h>
191faa
 #include <fcntl.h>
191faa
 #include <signal.h>
191faa
-#include <curses.h>
191faa
+#include <ncurses.h>
191faa
 #include <term.h>
191faa
 
191faa
 #ifndef bzero