Index: Makefile.in
--- Makefile.in.orig	2020-12-13 19:37:37.035935000 +0100
+++ Makefile.in	2020-12-13 19:38:01.804199000 +0100
@@ -54,8 +54,8 @@
 
 # Miscelaneous install paths
 bindir=$(prefix)/bin
-docdir=$(prefix)/share/doc/dwdiff-2.1.4
-mandir=$(prefix)/share/man
+docdir=$(prefix)/share/dwdiff
+mandir=$(prefix)/man
 
 all: dwdiff $(DWFILTER:yes=dwfilter) linguas
 
Index: src/option.c
--- src/option.c.orig	2020-12-13 12:38:01.000000000 +0100
+++ src/option.c	2020-12-13 19:37:37.036173000 +0100
@@ -470,7 +470,7 @@
 	option.output = stdout;
 
 	initOptions();
-  UErrorCode error = U_ZERO_ERROR;
+  ONLY_UNICODE(UErrorCode error = U_ZERO_ERROR;)
 	ONLY_UNICODE(option.decomposition = unorm2_getNFDInstance(&error);)
 
 	option.needStartStop = true;
Index: src/profile.c
--- src/profile.c.orig	2020-12-13 12:38:01.000000000 +0100
+++ src/profile.c	2020-12-13 19:37:37.036278000 +0100
@@ -12,6 +12,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#define _WITH_GETLINE
+
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>
