From 0c80cd8ee9cb0bfc5b447fc823f9c68bac33bc1c Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 10 Nov 2000 03:41:47 +0000 Subject: [PATCH] In --version, say whether we have socketpair() or not --- options.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/options.c b/options.c index be53d5a4..9b2a68eb 100644 --- a/options.c +++ b/options.c @@ -99,11 +99,19 @@ struct in_addr socket_address = {INADDR_ANY}; static void print_rsync_version(void) { - rprintf(FINFO, "rsync version %s protocol version %d (%d-bit files)\n\n", - VERSION, PROTOCOL_VERSION, - sizeof(int64) * 8); - rprintf(FINFO, "Written by Andrew Tridgell and Paul Mackerras\n"); - rprintf(FINFO, "http://rsync.samba.org/\n"); + char const *got_socketpair = "no "; + +#ifdef HAVE_SOCKETPAIR + got_socketpair = ""; +#endif + + rprintf(FINFO, "rsync version %s protocol version %d\n", + VERSION, PROTOCOL_VERSION); + rprintf(FINFO, "Configuration: %d-bit files, %ssocketpairs\n\n", + sizeof(int64) * 8, + got_socketpair); + rprintf(FINFO, "Written by Andrew Tridgell and Paul Mackerras " + "\n\n"); #ifdef NO_INT64 rprintf(FINFO, "WARNING: no 64-bit integers on this platform!\n"); #endif -- 2.34.1