[Libguestfs] [PATCH 6/7] python: stop including config.h

Pino Toscano ptoscano at redhat.com
Thu Jan 9 17:37:49 UTC 2020


There is nothing in the Python bindings that require results from
configure, and gnulib is not used already.
---
 generator/python.ml | 6 ------
 python/handle.c     | 2 --
 2 files changed, 8 deletions(-)

diff --git a/generator/python.ml b/generator/python.ml
index 0e1ed20d8..fd297321e 100644
--- a/generator/python.ml
+++ b/generator/python.ml
@@ -119,8 +119,6 @@ and generate_python_structs () =
   generate_header CStyle LGPLv2plus;
 
   pr "\
-#include <config.h>
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
@@ -251,8 +249,6 @@ and generate_python_actions actions () =
   generate_header CStyle LGPLv2plus;
 
   pr "\
-#include <config.h>
-
 /* It is safe to call deprecated functions from this file. */
 #define GUESTFS_NO_WARN_DEPRECATED
 #undef GUESTFS_NO_DEPRECATED
@@ -542,8 +538,6 @@ and generate_python_module () =
   generate_header CStyle LGPLv2plus;
 
   pr "\
-#include <config.h>
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
diff --git a/python/handle.c b/python/handle.c
index 21077bba9..8200adb52 100644
--- a/python/handle.c
+++ b/python/handle.c
@@ -22,8 +22,6 @@
  * F<python/actions-*.c>).
  */
 
-#include <config.h>
-
 #include <stdio.h>
 #include <stdlib.h>
 
-- 
2.24.1




More information about the Libguestfs mailing list