In --version, say whether we have socketpair() or not

This commit is contained in:
Martin Pool
2000-11-10 03:41:47 +00:00
parent b79f79e3aa
commit 0c80cd8ee9

View File

@@ -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