Browse Source

generator: don't even try to compile if !HAVE_UCONTEXT.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 10 years ago
parent
commit
b744da8cdc
1 changed files with 8 additions and 0 deletions
  1. 8 0
      ccan/generator/_info

+ 8 - 0
ccan/generator/_info

@@ -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;