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

@ -16178,3 +16178,5 @@
* Added a 'Show Event Type' filter to rdcatch(1).
2017-10-19 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'socket error' message from 'RDCatchConnect'.
2017-10-19 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs that broke the build under Windows.

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());

View File

@ -197,7 +197,8 @@ void PickReportDates::generateData()
#ifdef WIN32
QString filename=
RDDateDecode(report->exportPath(RDReport::Windows),
edit_startdate_edit->date(),log_config,edit_svcname);
edit_startdate_edit->date(),rdstation_conf,log_config,
edit_svcname);
#else
QString filename=
RDDateDecode(report->exportPath(RDReport::Linux),