mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:22:04 -04:00
look for socklen_t in <sys/types.h>, too
This commit is contained in:
parent
1123872a47
commit
f642eb7b9f
2 changed files with 5 additions and 3 deletions
5
contrib/queryperf/configure
vendored
5
contrib/queryperf/configure
vendored
|
|
@ -914,12 +914,13 @@ else
|
|||
cat > conftest.$ac_ext <<EOF
|
||||
#line 916 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
int main() {
|
||||
socklen_t len = 42; return len;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_type_socklen_t=yes
|
||||
else
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ AC_DEFUN(AC_TYPE_SOCKLEN_T,
|
|||
[AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t,
|
||||
[
|
||||
AC_TRY_COMPILE(
|
||||
[#include <sys/socket.h>],
|
||||
[#include <sys/types.h>
|
||||
#include <sys/socket.h>],
|
||||
[socklen_t len = 42; return len;],
|
||||
ac_cv_type_socklen_t=yes,
|
||||
ac_cv_type_socklen_t=no)
|
||||
|
|
|
|||
Loading…
Reference in a new issue