---
generator/c.ml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/generator/c.ml b/generator/c.ml
index ae8e933..055b683 100644
--- a/generator/c.ml
+++ b/generator/c.ml
@@ -603,6 +603,8 @@ extern GUESTFS_DLL_PUBLIC void *guestfs_next_private (guestfs_h *g,
const char *
(* Public structures. *)
let generate_all_structs = List.iter (
fun { s_name = typ; s_cols = cols } ->
+ pr "#define GUESTFS_HAVE_STRUCT_%s 1\n" (String.uppercase typ);
+ pr "\n";
pr "struct guestfs_%s {\n" typ;
List.iter (
function
--
2.5.0