Added 'ipv6 enabled' for ipv6 compiled versions

This commit is contained in:
Daniel Stenberg 2001-01-23 08:16:59 +00:00
Родитель 65840f1fd1
Коммит 6f438bc8fb
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -61,8 +61,18 @@ char *curl_version(void)
ptr=strchr(ptr, '\0'); ptr=strchr(ptr, '\0');
#endif #endif
#if defined(KRB4) || defined(ENABLE_IPV6)
strcat(ptr, " (");
ptr+=2;
#ifdef KRB4 #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); ptr += strlen(ptr);
#endif #endif