Commit a4cdd20d authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7131: [PATCH] wsrep_guess_ip doesn't compile on OpenBSD

Extend platform check to include OpenBSD.
(Contributed by: Jonathan Matthew)
parent 6f65d2d1
...@@ -414,7 +414,7 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len) ...@@ -414,7 +414,7 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len)
#elif defined(__sun__) #elif defined(__sun__)
const char cmd[] = "/sbin/ifconfig -a | " const char cmd[] = "/sbin/ifconfig -a | "
"/usr/gnu/bin/grep -m1 -1 -E 'net[0-9]:' | tail -n 1 | awk '{ print $2 }'"; "/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)}'"; const char cmd[] = "/sbin/route -nv get 8.8.8.8 | tail -n1 | awk '{print $(NF)}'";
#else #else
char *cmd; char *cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment