$NetBSD: patch-ac,v 1.3 2014/03/25 23:19:19 asau Exp $ NetBSD editline keeps header files in "readline", not "editline". Same applies to DragonFly. FreeBSD requires additional header file to get access to history. --- src/gp_hist.h.orig 2011-02-21 07:56:57.000000000 +0000 +++ src/gp_hist.h @@ -70,7 +70,10 @@ extern long int gnuplot_history_size; * (almost) compatible readline replacement */ #if defined(HAVE_LIBEDITLINE) -# include +# if defined(__FreeBSD__) +# include +# endif +# include #endif #if defined(READLINE) && !defined(HAVE_LIBREADLINE) && !defined(HAVE_LIBEDITLINE)