summaryrefslogtreecommitdiff
path: root/graphics/gnuplot/patches/patch-ac
blob: e024af6017d43c4629cfd829beb6d3cc05109ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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 <editline/readline.h>
+# if defined(__FreeBSD__)
+#   include <readline/history.h>
+# endif
+# include <readline/readline.h>
 #endif
 
 #if defined(READLINE) && !defined(HAVE_LIBREADLINE) && !defined(HAVE_LIBEDITLINE)