]> git.ozlabs.org Git - ccan/blobdiff - tools/configurator/configurator.c
compiler: Add PURE_FUNCTION
[ccan] / tools / configurator / configurator.c
index bbf7259e6b9306010b99113c98548621f33e2891..6fa88e5b071fa6d80faf1fb4cfdeca8565e77b55 100644 (file)
@@ -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 <sys/filio.h>\n" },
+       { "HAVE_SYS_TERMIOS_H", OUTSIDE_MAIN, NULL, NULL,
+         "#include <sys/termios.h>\n" },
        { "HAVE_TYPEOF", INSIDE_MAIN, NULL, NULL,
          "__typeof__(argc) i; i = argc; return i == argc ? 0 : 1;" },
        { "HAVE_UTIME", DEFINES_FUNC, NULL, NULL,