From 6f438bc8fb6d53e099a26f1d55ef6577c347fef0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 23 Jan 2001 08:16:59 +0000 Subject: [PATCH] Added 'ipv6 enabled' for ipv6 compiled versions --- lib/version.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/version.c b/lib/version.c index 9b2bbcded..cfb4aa333 100644 --- a/lib/version.c +++ b/lib/version.c @@ -61,8 +61,18 @@ char *curl_version(void) ptr=strchr(ptr, '\0'); #endif +#if defined(KRB4) || defined(ENABLE_IPV6) + strcat(ptr, " ("); + ptr+=2; #ifdef KRB4 - sprintf(ptr, " (krb4 enabled)"); + sprintf(ptr, "krb4 "); + ptr += strlen(ptr); +#endif +#ifdef ENABLE_IPV6 + sprintf(ptr, "ipv6 "); + ptr += strlen(ptr); +#endif + sprintf(ptr, "enabled)"); ptr += strlen(ptr); #endif