waf: disable-python - don't include python.h in test_headers.c
authorIan Stakenvicius <axs@gentoo.org>
Mon, 30 Jan 2017 15:11:46 +0000 (10:11 -0500)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 10:24:13 +0000 (11:24 +0100)
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Mar 10 11:24:13 CET 2017 on sn-devel-144

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>