Fixing compilation with --disable-color.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4684 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-03-26 19:20:41 +00:00
parent f7b5c5a685
commit a166f702a0
2 changed files with 3 additions and 0 deletions

View File

@ -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 <vapier@gentoo.org>.
* configure.ac - Clean up most of the --with/--enable flags:

View File

@ -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) {