--- configure.orig 2017-03-09 15:15:03.451409000 +0100 +++ configure 2017-03-09 15:19:37.205559000 +0100 @@ -12228,7 +12228,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; } case "$host" in - *-freebsd*) + *-freebsd*|*-bsdsunix*) ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" " #ifdef HAVE_NETDB_H #include