From: Otto Moerbeek Date: Mon, 29 Aug 2022 13:09:44 +0000 (+0200) Subject: Make sure things compile with !HAVE_FSTRM X-Git-Tag: rec-4.9.0-alpha0~16^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d593bb49c07e7fa3b903cf2df0e7a50db33250f;p=thirdparty%2Fpdns.git Make sure things compile with !HAVE_FSTRM --- diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index 8b4bd6292f..8722a5551c 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -974,6 +974,7 @@ static RemoteLoggerStats_t* pleaseGetOutgoingRemoteLoggerStats() return ret; } +#ifdef HAVE_FSTRM static RemoteLoggerStats_t* pleaseGetFramestreamLoggerStats() { auto ret = new RemoteLoggerStats_t; @@ -985,6 +986,7 @@ static RemoteLoggerStats_t* pleaseGetFramestreamLoggerStats() } return ret; } +#endif static void remoteLoggerStats(const string& name, const RemoteLoggerStats_t& stats, ostringstream& os) { @@ -1005,8 +1007,10 @@ static string getRemoteLoggerStats() remoteLoggerStats("Protobuf ", stats, os); stats = broadcastAccFunction(pleaseGetOutgoingRemoteLoggerStats); remoteLoggerStats("OutProtobuf", stats, os); +#ifdef HAVE_FSTRM stats = broadcastAccFunction(pleaseGetFramestreamLoggerStats); remoteLoggerStats("Framestream", stats, os); +#endif return os.str(); }