X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fconfigurator%2Fconfigurator.c;h=6fa88e5b071fa6d80faf1fb4cfdeca8565e77b55;hp=bbf7259e6b9306010b99113c98548621f33e2891;hb=48c1824304ac2d8aeaef7b8a55c7d9edc8992f63;hpb=d61a0d6c2c9d2b385075338665d64ae1d1bbe3dc diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index bbf7259e..6fa88e5b 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -79,6 +79,8 @@ static struct test tests[] = { "static int __attribute__((cold)) func(int x) { return x; }" }, { "HAVE_ATTRIBUTE_CONST", DEFINES_FUNC, NULL, NULL, "static int __attribute__((const)) func(int x) { return x; }" }, + { "HAVE_ATTRIBUTE_PURE", DEFINES_FUNC, NULL, NULL, + "static int __attribute__((pure)) func(int x) { return x; }" }, { "HAVE_ATTRIBUTE_MAY_ALIAS", OUTSIDE_MAIN, NULL, NULL, "typedef short __attribute__((__may_alias__)) short_a;" }, { "HAVE_ATTRIBUTE_NORETURN", DEFINES_FUNC, NULL, NULL, @@ -249,6 +251,8 @@ static struct test tests[] = { "return ({ int x = argc; x == argc ? 0 : 1; });" }, { "HAVE_SYS_FILIO_H", OUTSIDE_MAIN, NULL, NULL, /* Solaris needs this for FIONREAD */ "#include \n" }, + { "HAVE_SYS_TERMIOS_H", OUTSIDE_MAIN, NULL, NULL, + "#include \n" }, { "HAVE_TYPEOF", INSIDE_MAIN, NULL, NULL, "__typeof__(argc) i; i = argc; return i == argc ? 0 : 1;" }, { "HAVE_UTIME", DEFINES_FUNC, NULL, NULL,