waf: disable-python - don't include python.h in test_headers.c
[sfrench/samba-autobuild/.git] / testsuite / headers / test_headers.c
index a36575fbb3eb2fc01093ea7b68aab48239197dce..4e63e99899515e62d0b96a8ae06c52dbb11fa39d 100644 (file)
@@ -23,7 +23,9 @@
 
 #define _GNU_SOURCE 1
 
-#include <Python.h>
+#ifdef HAVE_PYTHON_H
+# include <Python.h>
+#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>