summaryrefslogtreecommitdiff
path: root/databases/gigabase/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2012-06-25 11:16:00 +0000
committerjoerg <joerg>2012-06-25 11:16:00 +0000
commit05720a012af2f920a1a8753563bf2782defb2d70 (patch)
tree4e8cb38e63b6e19e62c32215ea794c299aaa86be /databases/gigabase/patches
parentc862d1c36d308d63982fa2f10957e31dafcfa25d (diff)
downloadpkgsrc-05720a012af2f920a1a8753563bf2782defb2d70.tar.gz
Request explicit template specialisation before doing it implicitly to
fix build with clang.
Diffstat (limited to 'databases/gigabase/patches')
-rw-r--r--databases/gigabase/patches/patch-class.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/databases/gigabase/patches/patch-class.h b/databases/gigabase/patches/patch-class.h
new file mode 100644
index 00000000000..86a111bf10e
--- /dev/null
+++ b/databases/gigabase/patches/patch-class.h
@@ -0,0 +1,23 @@
+$NetBSD: patch-class.h,v 1.1 2012/06/25 11:16:00 joerg Exp $
+
+Explicit template specialisation before implicit one.
+
+--- class.h.orig 2012-06-23 16:32:11.000000000 +0000
++++ class.h
+@@ -216,12 +216,12 @@ typedef int (*dbUDTComparator)(void*, vo
+ &dbDescribeComponentsOf##table)
+
+ #define REGISTER_TEMPLATE_IN(table, database) \
+- GET_TABLE_DESC_PREFIX GB_NS::dbTableDescriptor* dbGetTableDescriptor GET_TABLE_DESC_PARAM(table) \
+- { return &table::dbDescriptor; } \
+ static GB_NS::dbFieldDescriptor* dbDescribeComponentsOf##table() \
+- { return ((table*)0)->dbDescribeComponents(NULL); } \
++ { return ((table*)0)->dbDescribeComponents(NULL); } \
+ TABLE_DESC_PREFIX GB_NS::dbTableDescriptor table::dbDescriptor(_T(#table), database, sizeof(table), \
+- &dbDescribeComponentsOf##table)
++ &dbDescribeComponentsOf##table); \
++ GET_TABLE_DESC_PREFIX GB_NS::dbTableDescriptor* dbGetTableDescriptor GET_TABLE_DESC_PARAM(table) \
++ { return &table::dbDescriptor; } \
+
+ #define REGISTER_IN_NS(ns, table, database) \
+ GET_TABLE_DESC_PREFIX GB_NS::dbTableDescriptor* dbGetTableDescriptor GET_TABLE_DESC_PARAM(ns::table) \