summaryrefslogtreecommitdiff
path: root/testsuite/headers
diff options
context:
space:
mode:
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>