]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
source/pcap-file: remove unused macro warning
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 23 Jan 2025 12:54:22 +0000 (13:54 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 23 Jan 2025 18:10:48 +0000 (19:10 +0100)
src/source-pcap-file.c

index 9c9f405eb4e72c6e4823f7460ea370acf2d223bf..f87c41cda3a43e9d2ca85ab317653b8913fee174 100644 (file)
@@ -137,9 +137,11 @@ void TmModuleDecodePcapFileRegister (void)
     tmm_modules[TMM_DECODEPCAPFILE].flags = TM_FLAG_DECODE_TM;
 }
 
+#if defined(HAVE_SETVBUF) && defined(OS_LINUX)
 #define PCAP_FILE_BUFFER_SIZE_DEFAULT 131072U   // 128 KiB
 #define PCAP_FILE_BUFFER_SIZE_MIN     4096U     // 4 KiB
 #define PCAP_FILE_BUFFER_SIZE_MAX     67108864U // 64MiB
+#endif
 
 void PcapFileGlobalInit(void)
 {