0002-without-history.patch 520 B

1234567891011121314151617
  1. history.c: Patch to solve the 'undefined reference to gp_read_history'
  2. Signed-off-by: Michael Fischer <mf@go-sys.de>
  3. diff -purN gnuplot-5.4.0.org/src/history.c gnuplot-5.4.0/src/history.c
  4. --- gnuplot-5.4.0.org/src/history.c 2019-12-10 07:22:32.000000000 +0100
  5. +++ gnuplot-5.4.0/src/history.c 2020-09-14 10:07:36.525441702 +0200
  6. @@ -91,7 +91,9 @@ write_history(char *filename)
  7. void
  8. read_history(char *filename)
  9. {
  10. - gp_read_history(filename);
  11. +#ifdef GNUPLOT_HISTORY
  12. + gp_read_history(filename);
  13. +#endif
  14. }