--- router/src/routing/src/mysql_routing.cc.orig 2019-08-03 19:38:46 UTC
+++ router/src/routing/src/mysql_routing.cc
@@ -217,7 +217,7 @@ static int unix_getpeercred(int sock, pid_t &peer_pid,
free(ucred);
return 0;
-#elif defined(_GNU_SOURCE)
+#elif defined(_GNU_SOURCE) && !defined(__FreeBSD__)
struct ucred ucred;
socklen_t ucred_len = sizeof(ucred);