[Commits] Rev 3901: MDEV-7131: [PATCH] wsrep_guess_ip doesn't compile on OpenBSD in lp:~maria-captains/maria/maria-10.0-galera

Nirbhay Choubey nirbhay at mariadb.com
Wed Nov 19 20:33:43 EET 2014


At lp:~maria-captains/maria/maria-10.0-galera

------------------------------------------------------------
revno: 3901
revision-id: nirbhay at mariadb.com-20141119183337-n5spskf54beqbhif
parent: nirbhay at mariadb.com-20141117165603-a5ukmap0ysscnq66
committer: Nirbhay Choubey <nirbhay at mariadb.com>
branch nick: maria-10.0-galera
timestamp: Wed 2014-11-19 13:33:37 -0500
message:
  MDEV-7131: [PATCH] wsrep_guess_ip doesn't compile on OpenBSD
  
  Extend platform check to include OpenBSD.
  (Contributed by: Jonathan Matthew)
-------------- next part --------------
=== modified file 'sql/wsrep_utils.cc'
--- a/sql/wsrep_utils.cc	2014-03-27 20:26:00 +0000
+++ b/sql/wsrep_utils.cc	2014-11-19 18:33:37 +0000
@@ -414,7 +414,7 @@
 #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;



More information about the commits mailing list