aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-08-06 11:18:54 -0700
committerWayne Davison <wayned@samba.org>2011-08-06 11:19:00 -0700
commit3fd0357f9f9667154f81fa3bb78df5b5063c1684 (patch)
tree7288d4bf116c786d81fab5f5d9f2202d68810570 /configure.ac
parent64fa23add924af850546fca2575f7a1e76565af9 (diff)
downloadandroid_external_rsync-3fd0357f9f9667154f81fa3bb78df5b5063c1684.tar.gz
android_external_rsync-3fd0357f9f9667154f81fa3bb78df5b5063c1684.tar.bz2
android_external_rsync-3fd0357f9f9667154f81fa3bb78df5b5063c1684.zip
Ignore socketpair() on cygwin. Fixes bug 8356.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
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