From 8acd0089c42c24bb7d37d8250e08867e0bd72a0f Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 01 12月 2019 13:44:00 +0800 Subject: [PATCH] fix centos --- src/library/os/os-linux.c | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/library/os/os-linux.c b/src/library/os/os-linux.c index 661ea78..ddfca4b 100644 --- a/src/library/os/os-linux.c +++ b/src/library/os/os-linux.c @@ -2,16 +2,16 @@ #include <sys/stat.h> #include "os.h" #include "../base/logger.h" - -//#include <openssl/evp.h> -//#include <openssl/bio.h> #include <openssl/pem.h> #include <openssl/err.h> #include <mntent.h> #include <dirent.h> - #include <sys/utsname.h> +#ifdef _DEBUG +#include <valgrind/memcheck.h> +#endif + #ifdef USE_DBUS #include <dbus-1.0/dbus/dbus.h> #endif @@ -203,13 +203,7 @@ } void os_initialize() { - static int initialized = 0; - if (initialized == 0) { - initialized = 1; - ERR_load_ERR_strings(); - ERR_load_crypto_strings(); - OpenSSL_add_all_algorithms(); - } + } static void _getCpuid(unsigned int *p, unsigned int ax) { -- Gitblit v1.9.1