diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2014-11-19 13:33:37 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2014-11-19 13:33:37 -0500 |
commit | a4cdd20d49a5a6ca0eb7346b7b9e898ac5e7995b (patch) | |
tree | ea3bfb4e9a51eb06b9c523ac83e1f472e1226eba /sql/wsrep_utils.cc | |
parent | 6f65d2d11433b0bfa30d5a4cd9178a7aaaea05f6 (diff) | |
download | mariadb-git-a4cdd20d49a5a6ca0eb7346b7b9e898ac5e7995b.tar.gz |
MDEV-7131: [PATCH] wsrep_guess_ip doesn't compile on OpenBSD
Extend platform check to include OpenBSD.
(Contributed by: Jonathan Matthew)
Diffstat (limited to 'sql/wsrep_utils.cc')
-rw-r--r-- | sql/wsrep_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_utils.cc b/sql/wsrep_utils.cc index cdee1c2cece..14239c88785 100644 --- a/sql/wsrep_utils.cc +++ b/sql/wsrep_utils.cc @@ -414,7 +414,7 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len) #elif defined(__sun__) const char cmd[] = "/sbin/ifconfig -a | " "/usr/gnu/bin/grep -m1 -1 -E 'net[0-9]:' | tail -n 1 | awk '{ print $2 }'"; -#elif defined(__APPLE__) || defined(__FreeBSD__) +#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) const char cmd[] = "/sbin/route -nv get 8.8.8.8 | tail -n1 | awk '{print $(NF)}'"; #else char *cmd; |