Source: galera-3
Version:
Severity: important
Tags: ftbfs, patch
User: debian-h...@lists.debian.org, debian-k...@lists.debian.org
Usertags: hurd-i386, kfreebsd-any
Hello,
Currently galera-3 FTBFS on GNU/Hurd and GNU/kFreeBSD-any due to
ambiguities on members of struct ifreq. Attached is a patch to fix
this. This patch is enough to make galera-3 build properly on kfreebsd-
anny, while some tests still have to be modified since GNU/Hurd lacks
implementations of: posix_fadvise, msync and pthread_setschedparam.
Thanks!
--- a/galerautils/src/gu_resolver.cpp 2018-02-06 11:47:00.000000000 +0100
+++ b/galerautils/src/gu_resolver.cpp 2018-08-13 11:48:34.000000000 +0200
@@ -258,9 +258,9 @@
{
err = errno;
}
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GNU__)
idx = ifrp->ifr_ifindex;
-#elif defined(__sun__)
+#elif defined(__sun__) || defined(__FreeBSD_kernel__)
idx = ifrp->ifr_index;
#else
# error "Unsupported ifreq structure"