vcpkg/ports/libmysql/004-added-limits-include.patch
Silver Zachara 586a03afa3
[libmysql] Added limits include patch (#20947)
* [libmysql] Added limits include patch

Fixes numeric_limits is not a member of std build failure on GCC 11.2 in
sql-common/sql_string.cc file.

* Updated version database

* Update portfile.cmake

* Update versions/l-/libmysql.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2021-10-26 23:45:32 -07:00

13 lines
293 B
Diff

diff --git a/sql-common/sql_string.cc b/sql-common/sql_string.cc
index 40435729..8b6ee827 100644
--- a/sql-common/sql_string.cc
+++ b/sql-common/sql_string.cc
@@ -23,6 +23,7 @@
#include "sql_string.h"
#include <algorithm>
+#include <limits>
#include "my_dbug.h"
#include "my_macros.h"