SVN commit 704939 by helio: - Make it compile back with 1.2.x M +8 -0 ipprequest.cpp --- branches/KDE/3.5/kdelibs/kdeprint/cups/ipprequest.cpp #704938:704939 @@ -310,8 +310,12 @@ } #ifdef HAVE_CUPS_NO_PWD_CACHE +#ifdef CUPS_VERSION < 1.0300 + strncpy( HTTP->authstring, cups_authstring.data(), HTTP_MAX_VALUE ); +#else strncpy( httpGetAuthString( HTTP ), cups_authstring.data(), HTTP_MAX_VALUE ); #endif +#endif if (dump_ > 0) { @@ -320,8 +324,12 @@ request_ = cupsDoFileRequest(HTTP, request_, (res.isEmpty() ? "/" : res.latin1()), (filename.isEmpty() ? NULL : filename.latin1())); #ifdef HAVE_CUPS_NO_PWD_CACHE +#ifdef CUPS_VERSION < 1.0300 + cups_authstring = HTTP->authstring; +#else cups_authstring = httpGetAuthString( HTTP ); #endif +#endif httpClose(HTTP); if (dump_ > 1)