drogon: fix build with mysql (#2751)
* drogon: fix build with mysql * mariadb-connector-c: Use trycp instead of ln * drogon: fix mysql_optionsv check * drogon: fix compile on gcc13pull/2769/head
parent
91f78377d3
commit
c96f6b5f9d
4 changed files with 41 additions and 5 deletions
@ -0,0 +1,14 @@ |
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d9dbd66..87c92e6 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -379,8 +379,7 @@ if (BUILD_MYSQL)
|
||||
|
||||
if (DROGON_FOUND_MYSQL)
|
||||
message(STATUS "Ok! We find mariadb!")
|
||||
- include(CheckLibraryExists)
|
||||
- check_library_exists(${MYSQL_LIB_NAME} mysql_optionsv "" HAS_MYSQL_OPTIONSV)
|
||||
+ set(HAS_MYSQL_OPTIONSV TRUE)
|
||||
if (HAS_MYSQL_OPTIONSV)
|
||||
message(STATUS "Mariadb support mysql_optionsv")
|
||||
add_definitions(-DHAS_MYSQL_OPTIONSV)
|
@ -0,0 +1,12 @@ |
||||
diff --git a/lib/inc/drogon/RateLimiter.h b/lib/inc/drogon/RateLimiter.h
|
||||
index 3b8706b..dece795 100644
|
||||
--- a/lib/inc/drogon/RateLimiter.h
|
||||
+++ b/lib/inc/drogon/RateLimiter.h
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <memory>
|
||||
#include <chrono>
|
||||
#include <mutex>
|
||||
+#include <string>
|
||||
|
||||
namespace drogon
|
||||
{
|
Loading…
Reference in new issue