diff --git a/cf/roken-frag.m4 b/cf/roken-frag.m4 index 5f5563f5e..2518a6d53 100644 --- a/cf/roken-frag.m4 +++ b/cf/roken-frag.m4 @@ -317,6 +317,13 @@ AC_BROKEN([ \ writev \ ]) +dnl +dnl Check for sa_len in struct sockaddr, +dnl needs to come before the getnameinfo test +dnl +AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include +#include ]) + if test "$ac_cv_func_getnameinfo" = "yes"; then rk_BROKEN_GETNAMEINFO if test "$ac_cv_func_getnameinfo_broken" = yes; then @@ -525,13 +532,6 @@ dnl AC_KRB_STRUCT_SPWD -dnl -dnl Check for sa_len in struct sockaddr -dnl - -AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include -#include ]) - dnl won't work with automake dnl moved to AC_OUTPUT in configure.in dnl AC_CONFIG_FILES($1/Makefile)