Fix use of obsolete compile macro.
authorWayne Davison <wayned@samba.org>
Sun, 17 Apr 2016 18:20:38 +0000 (11:20 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 17 Apr 2016 18:20:38 +0000 (11:20 -0700)
Fixes bug 11813.

m4/socklen_t.m4

index 831820cacfebe4f2cd2514ee34583873b4cb9c78..99ca6d4ed1ae5d84c62b49a7fc4bacb9aa9b5ac4 100644 (file)
@@ -18,15 +18,15 @@ AC_DEFUN([TYPE_SOCKLEN_T],
          rsync_cv_socklen_t_equiv=
          for arg2 in "struct sockaddr" void; do
             for t in int size_t unsigned long "unsigned long"; do
-               AC_TRY_COMPILE([
+               AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include <sys/types.h>
 #include <sys/socket.h>
 
                   int getpeername (int, $arg2 *, $t *);
-               ],[
+               ]],[[
                   $t len;
                   getpeername(0,0,&len);
-               ],[
+               ]])],[
                   rsync_cv_socklen_t_equiv="$t"
                   break
                ])