commit a166f702a05431ef6c4748e94db682f5bea6d42d
parent f7b5c5a685a8439cdccdcede9079ca3e093c23ab
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 26 Mar 2014 19:20:41 +0000
Fixing compilation with --disable-color.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4684 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git 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 <vapier@gentoo.org>.
* configure.ac - Clean up most of the --with/--enable flags:
diff --git 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) {