$OpenBSD: patch-link-parser_link-parser_c,v 1.2 2016/05/01 10:10:39 ajacoutot Exp $

link-parser.c:235:2: error: implicit declaration of function 'lg_fgetc'

--- link-parser/link-parser.c.orig	Sun May  1 02:17:30 2016
+++ link-parser/link-parser.c	Sun May  1 11:56:58 2016
@@ -64,6 +64,10 @@
 #include "../viterbi/viterbi.h"
 #endif
 
+#ifndef HAVE_EDITLINE
+#include "../link-grammar/utilities.h"
+#endif
+
 #define MAX_INPUT 1024
 #define DISPLAY_MAX 1024
 #define COMMENT_CHAR '%'  /* input lines beginning with this are ignored */
