Index: keyhtab.c
--- keyhtab.c.orig	2024-05-27 19:20:04.000000000 +0200
+++ keyhtab.c	2024-06-02 11:43:07.602805000 +0200
@@ -10,7 +10,7 @@
 
 #ifdef READLINE_SUPPORT
 #include "tilde.h"
-#include <readline/readline.h>
+#include "readline/readline.h"
 #endif
 
 
Index: main.c
--- main.c.orig	2024-05-27 19:20:04.000000000 +0200
+++ main.c	2024-06-02 11:41:51.471079000 +0200
@@ -7,6 +7,10 @@
 
 #include "ytree.h"
 
+#if defined(__FreeBSD__)
+#include <locale.h>
+#endif
+
 
 
 static char buffer[PATH_LENGTH+1];
Index: ytree.h
--- ytree.h.orig	2024-05-27 19:20:04.000000000 +0200
+++ ytree.h	2024-06-02 11:42:33.224832000 +0200
@@ -32,11 +32,11 @@
 #else
 #ifdef __FreeBSD__
 #ifndef HAVE_CURSES
-#include <ncurses.h>
+#include "ncurses.h"
 #endif
 #else
 #ifndef HAVE_CURSES
-#include <curses.h>
+#include "curses.h"
 #endif
 #endif /* __FreeBSD__ */
 #endif /* ultrix */
@@ -45,7 +45,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <time.h>
-#if defined(linux) || defined(__GNU__)
+#if defined(linux) || defined(__GNU__) || defined(__FreeBSD__)
 #include <locale.h>
 #include <sys/wait.h>
 #include <sys/time.h>	/* needed vor RedHed5 (thanks to Robert Spier) */
