]> git.ozlabs.org Git - ccan/commitdiff
generator: don't even try to compile if !HAVE_UCONTEXT.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 26 Apr 2016 04:54:21 +0000 (14:24 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 26 Apr 2016 04:54:21 +0000 (14:24 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/generator/_info

index b0b7343f8196671042e4f394efd37cf8b79a6f3c..11753a5b8506b848de4238e24c9364db92e62308 100644 (file)
@@ -63,6 +63,14 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strcmp(argv[1], "ported") == 0) {
+#if HAVE_UCONTEXT
+               printf("\n");
+#else
+               printf("Needs ucontext support\n");
+#endif
+       }
+
        if (strcmp(argv[1], "testdepends") == 0) {
                printf("ccan/str\n");
                return 0;