2017-10-19 Fred Gleason <fredg@paravelsystems.com>

* Fixed bugs that broke the build under Windows.
This commit is contained in:
Fred Gleason
2017-10-19 10:49:02 -04:00
parent 9f1fa7cb00
commit 040b693376
4 changed files with 8 additions and 4 deletions

View File

@@ -619,10 +619,10 @@ void RDConfig::load()
//
int sock=-1;
#ifndef WIN32
if((sock=socket(PF_INET,SOCK_DGRAM,IPPROTO_IP))<0) {
return;
}
#ifndef WIN32
struct ifreq ifr;
int index=0;

View File

@@ -684,9 +684,10 @@ bool RDReport::generateReport(const QDate &startdate,const QDate &enddate,
break;
}
#ifdef WIN32
*out_path=RDDateDecode(exportPath(RDReport::Windows),startdate);
*out_path=RDDateDecode(exportPath(RDReport::Windows),startdate,report_station,
report_config,serviceName());
QString post_cmd=RDDateDecode(postExportCommand(RDReport::Windows),startdate,
report_config,serviceName());
report_station,report_config,serviceName());
#else
*out_path=RDDateDecode(exportPath(RDReport::Linux),startdate,report_station,
report_config,serviceName());