The included patch allows for compilation of htdig under Sparc C 4.2. It is
simply a pre-declaration of a variable in a while loop in the file
htdig/Retriever.cc
=============================================
--- htdig-3.1.5/htdig/Retriever.cc Thu Feb 24 21:29:10 2000
+++ htdig-3.1.5.sparc/htdig/Retriever.cc Thu Apr 19 17:34:20 2001
@@ -837,7 +837,8 @@ Retriever::GetLocal(char *url)
*local += &url[prefix->length()];
if (local->last() == '/' && defaultdocs) {
defaultdocs->Start_Get();
- while (String *defaultdoc = (String *)defaultdocs->Get_Next())
{
+ String *defaultdoc= NULL;
+ while (defaultdoc = (String *)defaultdocs->Get_Next()) {
String *localdefault = new String(*local,
local->length()+defaul
tdoc->length()+1);
localdefault->append(*defaultdoc);
local_names->Add(localdefault);
@@ -964,7 +965,8 @@ Retriever::GetLocalUser(char *url, Strin
*local += rest;
if (local->last() == '/' && defaultdocs) {
defaultdocs->Start_Get();
- while (String *defaultdoc = (String *)defaultdocs->Get_Next()) {
+ String *defaultdoc= NULL;
+ while (defaultdoc = (String *)defaultdocs->Get_Next()) {
String *localdefault = new String(*local,
local->length()+defaultdoc
->length()+1);
localdefault->append(*defaultdoc);
local_names->Add(localdefault);=============================================
--
David J. Graff
Broadvision/Atlanta - Principal Consultant
mailto:[EMAIL PROTECTED]
Phone: (678) 427-5412
This message is intended only for the use of the Addressee and may contain
information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended
recipient, dissemination of this communication is prohibited. If you have
received this communication in error, please erase all copies of the message
and its attachments and notify us immediately.
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html