From a4cdd20d49a5a6ca0eb7346b7b9e898ac5e7995b Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Wed, 19 Nov 2014 13:33:37 -0500 Subject: MDEV-7131: [PATCH] wsrep_guess_ip doesn't compile on OpenBSD Extend platform check to include OpenBSD. (Contributed by: Jonathan Matthew) --- sql/wsrep_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/wsrep_utils.cc') 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; -- cgit v1.2.1