mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 20:20:30 -04:00
- Switch to a new fork on Github - Split NLS (gettext) as an option - Remove gmdb2 GUI (will come back as own port) Changelog: https://github.com/mdbtools/mdbtools/releases PR: 250515 Submitted by: Thaddeus Covert <tcovert+freebsd@sahuagin.net> (initial draft) Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D28118
27 lines
547 B
C
27 lines
547 B
C
--- 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
|