From: Wayne Davison Date: Sat, 6 Aug 2011 18:18:54 +0000 (-0700) Subject: Ignore socketpair() on cygwin. Fixes bug 8356. X-Git-Tag: v3.1.0pre1~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fd0357f9f9667154f81fa3bb78df5b5063c1684;p=thirdparty%2Frsync.git Ignore socketpair() on cygwin. Fixes bug 8356. --- diff --git a/configure.ac b/configure.ac index b822d099..9e6da5e5 100644 --- a/configure.ac +++ b/configure.ac @@ -730,7 +730,11 @@ AC_TRY_RUN([ main() { int fd[2]; +#ifdef __CYGWIN__ + exit(1); +#else exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1); +#endif }], rsync_cv_HAVE_SOCKETPAIR=yes,rsync_cv_HAVE_SOCKETPAIR=no,rsync_cv_HAVE_SOCKETPAIR=cross)]) if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then