Index: main.c --- main.c.orig 2016-09-04 19:18:17.000000000 +0200 +++ main.c 2017-11-08 18:01:48.078470000 +0100 @@ -9,6 +9,10 @@ #include "ytree.h" +#if defined(__FreeBSD__) +#include +#endif + static char buffer[PATH_LENGTH+1]; Index: ytree.h --- ytree.h.orig 2016-09-04 19:18:17.000000000 +0200 +++ ytree.h 2017-11-08 18:02:27.194778000 +0100 @@ -34,11 +34,11 @@ #else #ifdef __FreeBSD__ #ifndef HAVE_CURSES -#include +#include "ncurses.h" #endif #else #ifndef HAVE_CURSES -#include +#include "curses.h" #endif #endif /* __FreeBSD__ */ #endif /* ultrix */