In --version, say whether we have socketpair() or not
authorMartin Pool <mbp@samba.org>
Fri, 10 Nov 2000 03:41:47 +0000 (03:41 +0000)
committerMartin Pool <mbp@samba.org>
Fri, 10 Nov 2000 03:41:47 +0000 (03:41 +0000)
options.c

index be53d5a4866a85787bc7b0c31b47c6d97a27c0c8..9b2a68eb29631e11967b34e713e169184000c6a3 100644 (file)
--- 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 "
+                "<http://rsync.samba.org/>\n\n");
 #ifdef NO_INT64
         rprintf(FINFO, "WARNING: no 64-bit integers on this platform!\n");
 #endif