mdbx-windows: more for WindowsXP support.

Change-Id: Ide34048720989fc010f48e086569e12e8c1edca1
This commit is contained in:
Leonid Yuriev
2018-10-06 19:28:16 +03:00
parent 83f3d820f1
commit c9e3dc373b
3 changed files with 12 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ char *optarg;
int getopt(int argc, char *const argv[], const char *opts) {
static int sp = 1;
int c;
char *cp;
const char *cp;
if (sp == 1) {
if (optind >= argc || argv[optind][0] != '-' || argv[optind][1] == '\0')