Name: mingw32-xqilla
Version: 2.2.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: XQilla is an XQuery and XPath 2.0 library, built on top of Xerces-C
License: ASL 2.0
# implib. The patch disables those sample programs.
Patch1002: xqilla-no-xqc-tests.patch
+# XQLexer uses EOF symbol from stdio.
+Patch1003: xqilla-lexer-cstdio.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%patch1001 -p1
%patch1002 -p1
+%patch1003 -p1
%build
%changelog
-* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-2
+* Sat Feb 21 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-3
- Rebuild for mingw32-gcc 4.4
* Wed Feb 18 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-1
--- /dev/null
+diff -ur XQilla-2.2.0/src/lexer/XQLexer.cpp XQilla-2.2.0.mingw/src/lexer/XQLexer.cpp
+--- XQilla-2.2.0/src/lexer/XQLexer.cpp 2008-08-18 01:43:07.000000000 +0100
++++ XQilla-2.2.0.mingw/src/lexer/XQLexer.cpp 2009-02-21 09:51:41.000000000 +0000
+@@ -1,3 +1,5 @@
++#include <cstdio>
++
+ #define yyFlexLexer xqFlexLexer
+
+ #line 4 "../src/lexer/XQLexer.cpp"
+diff -ur XQilla-2.2.0/src/lexer/XQLexer.l XQilla-2.2.0.mingw/src/lexer/XQLexer.l
+--- XQilla-2.2.0/src/lexer/XQLexer.l 2008-08-18 01:42:59.000000000 +0100
++++ XQilla-2.2.0.mingw/src/lexer/XQLexer.l 2009-02-21 09:51:56.000000000 +0000
+@@ -21,6 +21,7 @@
+
+ %{
+
++#include <cstdio>
+ #include <sstream>
+ #include <xqilla/utils/UTF8Str.hpp>
+ #include "XQLexer.hpp"