]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Make sure things compile with !HAVE_FSTRM
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 29 Aug 2022 13:09:44 +0000 (15:09 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Sep 2022 09:28:07 +0000 (11:28 +0200)
pdns/rec_channel_rec.cc

index 8b4bd6292f95f6cf1acd35fe13b2b651740b9641..8722a5551cf3ea84c602018eefe11b34cf87f0dd 100644 (file)
@@ -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<RemoteLoggerStats_t>(pleaseGetOutgoingRemoteLoggerStats);
   remoteLoggerStats("OutProtobuf", stats, os);
+#ifdef HAVE_FSTRM
   stats = broadcastAccFunction<RemoteLoggerStats_t>(pleaseGetFramestreamLoggerStats);
   remoteLoggerStats("Framestream", stats, os);
+#endif
   return os.str();
 }