summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-02-16 16:35:41 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-02-16 16:35:41 +0900
commit7acd85d65ef52b08be9cf5cdf057239aa7a21e85 (patch)
tree6c8c969bc080bf31ed2add004568fc1d4d17199f /m4
parentf06790ac116291bcef7fd6c9057b17306fc8f74b (diff)
downloadrsync-7acd85d65ef52b08be9cf5cdf057239aa7a21e85.tar.gz
rsync-7acd85d65ef52b08be9cf5cdf057239aa7a21e85.tar.bz2
rsync-7acd85d65ef52b08be9cf5cdf057239aa7a21e85.zip
Imported Upstream version 3.1.3upstream/3.1.3
Diffstat (limited to 'm4')
-rw-r--r--m4/socklen_t.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/socklen_t.m4 b/m4/socklen_t.m4
index 831820ca..99ca6d4e 100644
--- a/m4/socklen_t.m4
+++ b/m4/socklen_t.m4
@@ -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
])