]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: don't remove HAVE_STRUCT_TIMESPEC when testing without features.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Sep 2012 06:14:45 +0000 (15:44 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Sep 2012 06:14:45 +0000 (15:44 +0930)
If we do have it, and we redefine it, compilation breaks.

tools/ccanlint/tests/reduce_features.c

index 6b4bd1571a857e97a09dbb7b0cbb559fb14b5d5d..d7f5c24209f845ae792233e53dd3c9b20d7729af 100644 (file)
@@ -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);