pmt: fix build issues with NDK
This commit is contained in:
0
srclib/CMakeLists.txt
Normal file → Executable file
0
srclib/CMakeLists.txt
Normal file → Executable file
0
srclib/libhelper/CMakeLists.txt
Normal file → Executable file
0
srclib/libhelper/CMakeLists.txt
Normal file → Executable file
0
srclib/libhelper/include/libhelper/lib.hpp
Normal file → Executable file
0
srclib/libhelper/include/libhelper/lib.hpp
Normal file → Executable file
0
srclib/libhelper/src/Checkers.cpp
Normal file → Executable file
0
srclib/libhelper/src/Checkers.cpp
Normal file → Executable file
3
srclib/libhelper/src/Classes.cpp
Normal file → Executable file
3
srclib/libhelper/src/Classes.cpp
Normal file → Executable 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);
|
||||
}
|
||||
|
||||
|
||||
0
srclib/libhelper/src/FileUtil.cpp
Normal file → Executable file
0
srclib/libhelper/src/FileUtil.cpp
Normal file → Executable file
0
srclib/libhelper/src/Sha256.cpp
Normal file → Executable file
0
srclib/libhelper/src/Sha256.cpp
Normal file → Executable file
0
srclib/libhelper/src/Utilities.cpp
Normal file → Executable file
0
srclib/libhelper/src/Utilities.cpp
Normal file → Executable file
0
srclib/libhelper/tests/test.cpp
Normal file → Executable file
0
srclib/libhelper/tests/test.cpp
Normal file → Executable file
0
srclib/libhelper/tests/test.sh
Normal file → Executable file
0
srclib/libhelper/tests/test.sh
Normal file → Executable file
0
srclib/libpartition_map/CMakeLists.txt
Normal file → Executable file
0
srclib/libpartition_map/CMakeLists.txt
Normal file → Executable file
0
srclib/libpartition_map/include/libpartition_map/lib.hpp
Normal file → Executable file
0
srclib/libpartition_map/include/libpartition_map/lib.hpp
Normal file → Executable file
0
srclib/libpartition_map/src/Getters.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/Getters.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/PartitionMap.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/PartitionMap.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/Type.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/Type.cpp
Normal file → Executable file
0
srclib/libpartition_map/tests/test.cpp
Normal file → Executable file
0
srclib/libpartition_map/tests/test.cpp
Normal file → Executable file
Reference in New Issue
Block a user