From a166f702a05431ef6c4748e94db682f5bea6d42d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 26 Mar 2014 19:20:41 +0000 Subject: [PATCH] Fixing compilation with --disable-color. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4684 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/rcfile.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6847b0b9..5c8d330e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ the mouse when mouse support is enabled: by holding down Shift. * nano.spec.in, doc/faq.html, doc/texinfo/nano.texi - Remove vestiges of the obsolete '--enable-all' configure flag. + * src/rcfile.c - Fix compilation with --disable-color. 2014-03-26 Mike Frysinger . * configure.ac - Clean up most of the --with/--enable flags: diff --git a/src/rcfile.c b/src/rcfile.c index e1001676..c98d781b 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1037,6 +1037,7 @@ void parse_rcfile(FILE *rcstream ptr = parse_next_word(ptr); +#ifdef ENABLE_COLOR /* Handle extending first... */ if (strcasecmp(keyword, "extendsyntax") == 0) { char *syntaxname = ptr; @@ -1057,6 +1058,7 @@ void parse_rcfile(FILE *rcstream ptr = parse_next_word(ptr); } } +#endif /* Try to parse the keyword. */ if (strcasecmp(keyword, "set") == 0) { -- 2.39.5