summaryrefslogtreecommitdiff
path: root/db/xa/xa_stub.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-30 11:58:31 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-30 11:58:31 +0300
commitcab228435bde1b5496522c03a4ce9840f2ef3701 (patch)
tree2c37b65d176e2de097603333f4de071c31eeff3d /db/xa/xa_stub.c
parent2d07882d45e9e575c00f8f402d4c7271bb65cfe9 (diff)
downloadlibrpm-tizen-cab228435bde1b5496522c03a4ce9840f2ef3701.tar.gz
librpm-tizen-cab228435bde1b5496522c03a4ce9840f2ef3701.tar.bz2
librpm-tizen-cab228435bde1b5496522c03a4ce9840f2ef3701.zip
Update internal BDB to version 4.6.18.
Diffstat (limited to 'db/xa/xa_stub.c')
-rw-r--r--db/xa/xa_stub.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/db/xa/xa_stub.c b/db/xa/xa_stub.c
new file mode 100644
index 000000000..e74c0d150
--- /dev/null
+++ b/db/xa/xa_stub.c
@@ -0,0 +1,38 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 1996,2007 Oracle. All rights reserved.
+ *
+ * $Id: xa_stub.c,v 1.3 2007/05/17 15:16:00 bostic Exp $
+ */
+
+#include "db_config.h"
+
+#include "db_int.h"
+#include "dbinc/txn.h"
+
+/*
+ * If the library wasn't compiled with XA support, various routines
+ * aren't available. Stub them here, returning an appropriate error.
+ */
+static int __db_noxa __P((DB_ENV *));
+
+/*
+ * __db_noxa --
+ * Error when a Berkeley DB build doesn't include XA support.
+ */
+static int
+__db_noxa(dbenv)
+ DB_ENV *dbenv;
+{
+ __db_errx(dbenv,
+ "library build did not include support for XA");
+ return (DB_OPNOTSUP);
+}
+
+int
+__db_xa_create(dbp)
+ DB *dbp;
+{
+ return (__db_noxa(dbp->dbenv));
+}