diff options
Diffstat (limited to 'dev-db/monetdb/files/xquery-0.20.0-bool-undeclared.patch')
-rw-r--r-- | dev-db/monetdb/files/xquery-0.20.0-bool-undeclared.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-db/monetdb/files/xquery-0.20.0-bool-undeclared.patch b/dev-db/monetdb/files/xquery-0.20.0-bool-undeclared.patch new file mode 100644 index 000000000000..c6d47bcc1b68 --- /dev/null +++ b/dev-db/monetdb/files/xquery-0.20.0-bool-undeclared.patch @@ -0,0 +1,21 @@ +* <grobian@gentoo.org>: upstream has a better/different fix, but it + involves a lot more patching as much more has + changed since the release + +--- pathfinder-0.20.0/compiler/include/qname.h ++++ pathfinder-0.20.0/compiler/include/qname.h +@@ -38,6 +38,14 @@ + + /* PFns_t */ + #include "ns.h" ++/* boolean type `bool' and constants `true', `false' */ ++#ifdef HAVE_STDBOOL_H ++#include <stdbool.h> ++#elif !defined(HAVE_BOOL) ++#define bool char ++#define true (char)1 ++#define false (char)0 ++#endif + + typedef unsigned int PFqname_t ; + |