build: exclude LMDB utilities from Windows CMake build, guard POSIX includes in mplay.c

file(GLOB) in libutun/CMakeLists.txt picked up mplay.c, mdb_dump.c and other
standalone LMDB tools that are not library code and fail on Windows. Filter them
out, keep only mdb.c + midl.c.
This commit is contained in:
Evgeny committed 2026-07-23 23:58:39 +03:00
1 parent 86d227bffe
commit e5dd41e5b2
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -13,13 +13,15 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#ifndef _WIN32
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#endif
#include "lmdb.h"