Skip to content

Commit

Permalink
includes for mac/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
justing-bq committed Apr 25, 2023
1 parent e82a1f6 commit 7ea3d3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions driver/failover_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
#include "driver.h"
#include "mylog.h"

#if defined(__APPLE__) || defined(__linux__)
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#endif

namespace {
const std::regex AURORA_DNS_PATTERN(
R"#((.+)\.(proxy-|cluster-|cluster-ro-|cluster-custom-)?([a-zA-Z0-9]+\.[a-zA-Z0-9\-]+\.rds\.amazonaws\.com))#",
Expand Down

0 comments on commit 7ea3d3d

Please sign in to comment.