PHP_ADD_INCLUDE($QTDOM_INCDIR)
PHP_NEW_EXTENSION(qtdom, qtdom.c qtdom_qt.cpp, $ext_shared)
PHP_SUBST(QTDOM_SHARED_LIBADD)
+--- php-4.4.9/ext/qtdom/qtdom_qt.h.orig 2001-01-04 13:29:07.000000000 +0100
++++ php-4.4.9/ext/qtdom/qtdom_qt.h 2020-10-22 21:19:25.667779334 +0200
+@@ -62,6 +62,6 @@
+ struct qdom_doc *qdom_do_init( const char *arg );
+ void qdom_do_free( struct qdom_doc *doc );
+
+-struct qdom_message *g_qdom_message_log;
++extern struct qdom_message *g_qdom_message_log;
+
+ #endif // QDOM_QT_H
+--- php-4.4.9/ext/qtdom/qtdom_qt.cpp.orig 2001-01-04 13:30:19.000000000 +0100
++++ php-4.4.9/ext/qtdom/qtdom_qt.cpp 2020-10-22 21:20:56.769184131 +0200
+@@ -22,6 +22,7 @@
+ #include <qglobal.h>
+
+ struct qdom_node *qdom_to_node( QDomNode *node );
++struct qdom_message *g_qdom_message_log;
+
+ /*!
+ Initialises certain global variables, they are:
cp -f Zend/LICENSE{,.Zend}
+# make colliding symbol static
+%{__sed} -i -e 's/^char \*yytext/static &/' Zend/zend_{ini,language}_scanner.c
+
%build
API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
if [ $API != %{php_api_version} ]; then