Browse Source

ccanlint: don't remove HAVE_STRUCT_TIMESPEC when testing without features.

If we do have it, and we redefine it, compilation breaks.
Rusty Russell 13 years ago
parent
commit
9d96562997
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tools/ccanlint/tests/reduce_features.c

+ 3 - 0
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);