|
|
@ -30,6 +30,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __GLIBC__
|
|
|
|
|
|
|
|
#include <gnu/libc-version.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "include_base_utils.h"
|
|
|
|
#include "include_base_utils.h"
|
|
|
|
#include "file_io_utils.h"
|
|
|
|
#include "file_io_utils.h"
|
|
|
|
using namespace epee;
|
|
|
|
using namespace epee;
|
|
|
@ -536,6 +540,17 @@ std::string get_nix_version_display_string()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool on_startup()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
sanitize_locale();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __GLIBC__
|
|
|
|
|
|
|
|
const char *ver = gnu_get_libc_version();
|
|
|
|
|
|
|
|
if (!strcmp(ver, "2.25"))
|
|
|
|
|
|
|
|
MCLOG_RED(el::Level::Warning, "global", "Running with glibc " << ver << ", hangs may occur - change glibc version if possible");
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
void set_strict_default_file_permissions(bool strict)
|
|
|
|
void set_strict_default_file_permissions(bool strict)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if defined(__MINGW32__) || defined(__MINGW__)
|
|
|
|
#if defined(__MINGW32__) || defined(__MINGW__)
|
|
|
|