diff --git a/generator.py b/generator.py index 15394ad..7727679 100755 --- a/generator.py +++ b/generator.py @@ -881,6 +881,7 @@ def emit_c_code(module: str) -> None: wrapper = open(wrapper_file, "w") wrapper.write("/* Generated by generator.py */\n\n") + wrapper.write("#include \n") wrapper.write("#include \n") wrapper.write("#include \n" % (module,)) wrapper.write("#include \"typewrappers.h\"\n") diff --git a/libvirt-override.c b/libvirt-override.c index 2d496a6..ac07346 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -18,6 +18,9 @@ #define VIR_ENUM_SENTINELS #define PY_SSIZE_T_CLEAN + +#include +#include #include #include #include diff --git a/libvirt-qemu-override.c b/libvirt-qemu-override.c index ef72d51..4d31c8a 100644 --- a/libvirt-qemu-override.c +++ b/libvirt-qemu-override.c @@ -14,6 +14,7 @@ which has over 180 autoconf-style HAVE_* definitions. Shame on them. */ #undef HAVE_PTHREAD_H +#include #include #include #include diff --git a/libvirt-utils.c b/libvirt-utils.c index a964779..ee2b118 100644 --- a/libvirt-utils.c +++ b/libvirt-utils.c @@ -19,6 +19,8 @@ * */ +#include + #include /* Ugly python defines that, which is also defined in errno.h */ diff --git a/typewrappers.c b/typewrappers.c index 3e34b36..2f37525 100644 --- a/typewrappers.c +++ b/typewrappers.c @@ -12,6 +12,8 @@ * which has over 180 autoconf-style HAVE_* definitions. Shame on them. */ #undef HAVE_PTHREAD_H +#include +#include #include "typewrappers.h" #include "libvirt-utils.h"