summaryrefslogtreecommitdiff
path: root/testsuite/headers
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2017-01-30 10:11:46 -0500
committerAndrew Bartlett <abartlet@samba.org>2017-03-10 11:24:13 +0100
commit7142a884419ae9940ba0429f9d117b94aff699b5 (patch)
tree9542e5875f1a7f6b046ca7185421cd456c705c80 /testsuite/headers
parent4455547204fd5d2d54944468c404f751279c495d (diff)
downloadsamba-7142a884419ae9940ba0429f9d117b94aff699b5.tar.gz
waf: disable-python - don't include python.h in test_headers.c
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
Diffstat (limited to 'testsuite/headers')
-rw-r--r--testsuite/headers/test_headers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/headers/test_headers.c b/testsuite/headers/test_headers.c
index a36575fbb3e..4e63e998995 100644
--- a/testsuite/headers/test_headers.c
+++ b/testsuite/headers/test_headers.c
@@ -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>