summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/misc.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/include/misc.i')
-rw-r--r--src/third_party/wiredtiger/src/include/misc.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/misc.i b/src/third_party/wiredtiger/src/include/misc.i
index 53f08b3cbeb..98facff02b9 100644
--- a/src/third_party/wiredtiger/src/include/misc.i
+++ b/src/third_party/wiredtiger/src/include/misc.i
@@ -7,6 +7,17 @@
*/
/*
+ * __wt_strdup --
+ * ANSI strdup function.
+ */
+static inline int
+__wt_strdup(WT_SESSION_IMPL *session, const char *str, void *retp)
+{
+ return (__wt_strndup(
+ session, str, (str == NULL) ? 0 : strlen(str), retp));
+}
+
+/*
* __wt_verbose --
* Verbose message.
*/