patch-ext_linenoise-ng_src_linenoise.cpp0000644000175000017500000000043315141336077021515 0ustar dvaneedendvaneeden--- ext/linenoise-ng/src/linenoise.cpp.orig 2026-01-26 17:14:23 UTC +++ ext/linenoise-ng/src/linenoise.cpp @@ -109,6 +109,7 @@ #include #include #include +#include #include #include #include patch-modules_util_upgrade__checker_upgrade__check__options.cc0000644000175000017500000000145515141336077026116 0ustar dvaneedendvaneeden--- modules/util/upgrade_checker/upgrade_check_options.cc.orig 2026-01-26 17:15:26 UTC +++ modules/util/upgrade_checker/upgrade_check_options.cc @@ -137,13 +137,12 @@ void Upgrade_check_options::verify_options() { "Check timeout must be non-zero, positive value"); } constexpr auto max_seconds = - std::chrono::duration_cast( + std::chrono::duration_cast( std::chrono::steady_clock::duration::max()) .count(); if (check_timeout.has_value() && *check_timeout > max_seconds) { throw std::invalid_argument(shcore::str_format( - "Check timeout value is bigger than supported value %" PRId64, - max_seconds)); + "Check timeout value is bigger than supported value")); } } patch-mysqlshdk_libs_ssh_ssh__tunnel__handler.cc0000644000175000017500000000054715141336077023305 0ustar dvaneedendvaneeden--- mysqlshdk/libs/ssh/ssh_tunnel_handler.cc.orig 2026-01-26 17:02:55 UTC +++ mysqlshdk/libs/ssh/ssh_tunnel_handler.cc @@ -30,6 +30,12 @@ #include #include "mysqlshdk/libs/utils/logger.h" +#ifdef __FreeBSD__ +#include +#include +#include +#endif + #ifndef MSG_NOSIGNAL #define MSG_NOSIGNAL 0 #endif patch-mysqlshdk_libs_utils_logger.cc0000644000175000017500000000042715141336077020747 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/logger.cc.orig 2026-01-26 16:59:21 UTC +++ mysqlshdk/libs/utils/logger.cc @@ -38,6 +38,7 @@ #include #else // !_WIN32 #include +#include #include #include #include patch-mysqlshdk_libs_utils_utils__file.cc0000644000175000017500000000125215141336077021763 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/utils_file.cc.orig 2026-01-26 17:00:08 UTC +++ mysqlshdk/libs/utils/utils_file.cc @@ -64,7 +64,7 @@ #include #include #else -#ifdef __sun +#if defined(__sun) || defined(__FreeBSD__) #include #else #include @@ -408,7 +408,7 @@ size_t file_size(const char *path) { #if defined(_WIN32) struct _stat64 file_stat = {}; const auto ret = _wstat64(utf8_to_wide(path).c_str(), &file_stat); -#elif defined(__APPLE__) || defined(__SUNPRO_CC) +#elif defined(__APPLE__) || defined(__SUNPRO_CC) || defined(__FreeBSD__) struct stat file_stat = {}; const auto ret = ::stat(path, &file_stat); #else patch-mysqlshdk_libs_utils_utils__general.cc0000644000175000017500000000162115141336077022461 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/utils_general.cc.orig 2026-01-26 17:04:27 UTC +++ mysqlshdk/libs/utils/utils_general.cc @@ -35,6 +35,10 @@ #include "include/mysh_config.h" #include "my_config.h" +#ifdef __FreeBSD__ +#include +#endif + #ifdef WIN32 #include #else @@ -240,7 +244,7 @@ std::string errno_to_string(int err) { #define strerror_r(E, B, S) strerror_s(B, S, E) #endif -#if defined(_WIN32) || defined(__sun) || defined(__APPLE__) || \ +#if defined(__FreeBSD__) || defined(_WIN32) || defined(__sun) || defined(__APPLE__) || \ ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && \ !_GNU_SOURCE) // NOLINT char buf[256]; @@ -1025,6 +1029,8 @@ OperatingSystem get_os_type() { os = OperatingSystem::MACOS; #elif __sun os = OperatingSystem::SOLARIS; +#elif __FreeBSD__ + os = OperatingSystem::FREEBSD; #elif __linux__ os = OperatingSystem::LINUX; patch-mysqlshdk_libs_utils_utils__general.h0000644000175000017500000000052415141336077022324 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/utils_general.h.orig 2026-01-26 17:09:34 UTC +++ mysqlshdk/libs/utils/utils_general.h @@ -172,7 +172,8 @@ enum class OperatingSystem { LINUX, WINDOWS_OS, // WINDOWS conflicts with a zlib #define MACOS, - SOLARIS + SOLARIS, + FREEBSD }; std::string SHCORE_PUBLIC to_string(OperatingSystem os_type); patch-mysqlshdk_libs_utils_utils__net.cc0000644000175000017500000000043715141336077021636 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/utils_net.cc.orig 2026-01-26 17:10:16 UTC +++ mysqlshdk/libs/utils/utils_net.cc @@ -25,6 +25,10 @@ #include "mysqlshdk/libs/utils/utils_net.h" +#ifdef __FreeBSD__ +#include +#endif + #ifdef _WIN32 // clang-format off #include patch-mysqlshdk_libs_utils_utils__os.cc0000644000175000017500000000101515141336077021462 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/utils_os.cc.orig 2026-01-26 17:11:12 UTC +++ mysqlshdk/libs/utils/utils_os.cc @@ -37,7 +37,9 @@ #include #else #include +#ifndef __FreeBSD__ #include +#endif #include #endif @@ -62,6 +64,8 @@ uint64_t available_memory() { (host_info64_t)&vm_stats, &count)) { return static_cast(vm_stats.free_count) * page_size; } +#elif __FreeBSD__ + return 0; #else struct sysinfo info; patch-mysqlshdk_libs_utils_uuid__gen.cc0000644000175000017500000000066215141336077021427 0ustar dvaneedendvaneeden--- mysqlshdk/libs/utils/uuid_gen.cc.orig 2026-01-26 17:13:17 UTC +++ mysqlshdk/libs/utils/uuid_gen.cc @@ -168,7 +168,7 @@ my_bool my_gethwaddr(unsigned char *to) { char zero_array[ETHER_ADDR_LEN] = {0}; if (sysctl(mib, 6, NULL, &len, NULL, 0) == -1) goto err; - if (!(buf = alloca(len))) goto err; + if (!(buf = (char *)alloca(len))) goto err; if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) goto err; end = buf + len;