Changeset View
Changeset View
Standalone View
Standalone View
databases/mdbtools/files/patch-src_libmdb_options.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/libmdb/options.c.orig 2020-12-17 19:03:05 UTC | |||||
+++ src/libmdb/options.c | |||||
@@ -50,9 +50,12 @@ load_options() | |||||
{ | |||||
char *opt; | |||||
char *s; | |||||
- char *ctx; | |||||
+ char *ctx; | |||||
- if (!optset && (s=getenv("MDBOPTS"))) { | |||||
+ if (optset) | |||||
+ return; | |||||
+ | |||||
+ if ((s=getenv("MDBOPTS"))) { | |||||
opt = strtok_r(s, ":", &ctx); | |||||
while (opt) { | |||||
if (!strcmp(opt, "use_index")) opts |= MDB_USE_INDEX; | |||||
@@ -74,6 +77,9 @@ load_options() | |||||
opt = strtok_r(NULL,":", &ctx); | |||||
} | |||||
} | |||||
+#ifdef HAVE_LIBMSWSTR | |||||
+ opts |= MDB_USE_INDEX; | |||||
+#endif | |||||
optset = 1; | |||||
} | |||||
int |