com php-src: Fixed build error "undefined symbol gdJpegGetVersionString": ext/gd/gd_compat.c
| From: | Xinchen Hui | Date: | Fri, 20 Nov 2015 07:22:05 +0000 |
| Subject: | com php-src: Fixed build error "undefined symbol gdJpegGetVersionString": ext/gd/gd_compat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89928@lists.php.net to get a copy of this message | ||
Commit: c8d6673b597f71cbbb04977ff87e6d45907484c2
Author: Xinchen Hui <laruence@gmail.com> Fri, 20 Nov 2015 15:22:05 +0800
Parents: 66c1f966f02bfed438a307034424b7c279421965
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c8d6673b597f71cbbb04977ff87e6d45907484c2
Log:
Fixed build error "undefined symbol gdJpegGetVersionString"
Changed paths:
M ext/gd/gd_compat.c
Diff:
diff --git a/ext/gd/gd_compat.c b/ext/gd/gd_compat..c
index dc6a95a..d6531f6 100644
--- a/ext/gd/gd_compat.c
+++ b/ext/gd/gd_compat.c
@@ -1,5 +1,9 @@
#include "php_config.h"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef HAVE_GD_PNG
/* needs to be first */
# include <png.h>