pmt: fix build issues with NDK

This commit is contained in:
2025-07-29 21:20:31 +03:00
parent 0b76d33715
commit fe51bf1644
31 changed files with 3 additions and 2 deletions

3
srclib/libhelper/src/Classes.cpp Normal file → Executable file
View File

@@ -21,12 +21,13 @@
#include <unistd.h>
#include <libgen.h>
#include <stdarg.h>
#include <fcntl.h>
#include <libhelper/lib.hpp>
static void __create_log_file(const char* file)
{
remove(file);
int fd = open(file, O_WRONLY | O_TRUNC, DEFAULT_EXTENDED_FILE_PERMS);
int fd = open(file, O_WRONLY | O_CREAT, DEFAULT_EXTENDED_FILE_PERMS);
if (fd != -1) close(fd);
}