From 82c0156cacacd32764be2e7cb6825f92ba88c787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 7 Sep 2015 13:20:58 +0200 Subject: [PATCH] Include config.h instead of php_config.h in gd_compat.c to have the configure variable available in outside-of-the-tree module build --- ext/gd/gd_compat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/gd/gd_compat.c b/ext/gd/gd_compat.c index d6d8d0b2f9eeb..af55e42d9a7c5 100644 --- a/ext/gd/gd_compat.c +++ b/ext/gd/gd_compat.c @@ -1,4 +1,6 @@ -#include "php_config.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #ifdef HAVE_GD_PNG /* needs to be first */