From: Rusty Russell Date: Mon, 10 Sep 2012 06:14:45 +0000 (+0930) Subject: ccanlint: don't remove HAVE_STRUCT_TIMESPEC when testing without features. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=9d965629977108b7dcce86f9c248be47b5928bc9;ds=sidebyside ccanlint: don't remove HAVE_STRUCT_TIMESPEC when testing without features. If we do have it, and we redefine it, compilation breaks. --- diff --git a/tools/ccanlint/tests/reduce_features.c b/tools/ccanlint/tests/reduce_features.c index 6b4bd157..d7f5c242 100644 --- a/tools/ccanlint/tests/reduce_features.c +++ b/tools/ccanlint/tests/reduce_features.c @@ -121,6 +121,9 @@ static struct htable_option *get_config_options(struct manifest *m) /* Don't override endian... */ if (strends(sym, "_ENDIAN")) continue; + /* Don't override HAVE_STRUCT_TIMESPEC. */ + if (streq(sym, "HAVE_STRUCT_TIMESPEC")) + continue; if (!get_token(&lines[i], "1")) continue; htable_option_add(opts, sym);