fix fcgi build, hopefully

This commit is contained in:
David Anderson 2017-07-30 16:06:43 -07:00
parent e8d0453d47
commit 1e55ec0c82
2 changed files with 5 additions and 1 deletions

View File

@ -334,7 +334,6 @@ int RPC_CLIENT::get_reply(char*& mbuf) {
if (n <= 0) return ERR_READ; if (n <= 0) return ERR_READ;
buf[n]=0; buf[n]=0;
mf.puts(buf); mf.puts(buf);
printf("%s\n", buf);
if (strchr(buf, '\003')) break; if (strchr(buf, '\003')) break;
} }
mf.get_buf(mbuf, n); mf.get_buf(mbuf, n);

View File

@ -37,6 +37,7 @@ int KEYWORD::parse(XML_PARSER& xp) {
return ERR_XML_PARSE; return ERR_XML_PARSE;
} }
#ifndef _USING_FCGI_
void KEYWORD::write_xml(MIOFILE& mf) { void KEYWORD::write_xml(MIOFILE& mf) {
mf.printf( mf.printf(
"<keyword>\n" "<keyword>\n"
@ -49,6 +50,7 @@ void KEYWORD::write_xml(MIOFILE& mf) {
name.c_str(), description.c_str(), parent, level, category name.c_str(), description.c_str(), parent, level, category
); );
} }
#endif
int KEYWORDS::parse(XML_PARSER& xp) { int KEYWORDS::parse(XML_PARSER& xp) {
while (!xp.get_tag()) { while (!xp.get_tag()) {
@ -111,6 +113,8 @@ void JOB_KEYWORD_IDS::parse_str(char* buf) {
} }
} }
#ifndef _USING_FCGI_
// write list of full keywords // write list of full keywords
// //
void JOB_KEYWORD_IDS::write_xml_text(MIOFILE& mf, KEYWORDS& k) { void JOB_KEYWORD_IDS::write_xml_text(MIOFILE& mf, KEYWORDS& k) {
@ -137,6 +141,7 @@ void JOB_KEYWORD_IDS::write_xml_num(MIOFILE& out) {
} }
out.printf("</job_keyword_ids>\n"); out.printf("</job_keyword_ids>\n");
} }
#endif
int JOB_KEYWORDS::parse(XML_PARSER& xp) { int JOB_KEYWORDS::parse(XML_PARSER& xp) {
while (!xp.get_tag()) { while (!xp.get_tag()) {